mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2366 from zachjs/library-format
Simple support for %l format specifier
This commit is contained in:
commit
c1a6097376
|
@ -110,6 +110,12 @@ std::string AstNode::process_format_str(const std::string &sformat, int next_arg
|
||||||
goto unsupported_format;
|
goto unsupported_format;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'l':
|
||||||
|
case 'L':
|
||||||
|
if (got_len)
|
||||||
|
goto unsupported_format;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
unsupported_format:
|
unsupported_format:
|
||||||
log_file_error(filename, location.first_line, "System task `%s' called with invalid/unsupported format specifier.\n", str.c_str());
|
log_file_error(filename, location.first_line, "System task `%s' called with invalid/unsupported format specifier.\n", str.c_str());
|
||||||
|
@ -155,6 +161,11 @@ std::string AstNode::process_format_str(const std::string &sformat, int next_arg
|
||||||
sout += log_id(current_module->name);
|
sout += log_id(current_module->name);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'l':
|
||||||
|
case 'L':
|
||||||
|
sout += log_id(current_module->name);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
log_abort();
|
log_abort();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue