vhdlpp: More robust report messages display.

This commit is contained in:
Maciej Suminski 2016-02-16 11:48:22 +01:00
parent 9cf1dcbae2
commit a7f4d65aaa
1 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ void BasicLoopStatement::write_to_stream(std::ostream&fd)
int ReportStmt::emit(ostream&out, Entity*ent, ScopeBase*scope)
{
out << "$display(\"** ";
out << "$display(\"%s\", {\"** ";
switch(severity_)
{
@ -512,7 +512,7 @@ int ReportStmt::emit(ostream&out, Entity*ent, ScopeBase*scope)
out << ": \",";
msg_->emit(out, ent, scope);
out << ",\" (" << get_fileline() << ")\");";
out << ",\" (" << get_fileline() << ")\"});";
if(severity_ == FAILURE)
out << "$finish();";