aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-06-07 12:41:09 +0200
committerClifford Wolf <clifford@clifford.at>2019-06-07 12:41:09 +0200
commit211d85cfcc1ae701bb9392347bcbb9750e3045b0 (patch)
treeba04c46a5db3cf2f41ca6545d1f6e930b354369c /kernel
parenta3bbc5365bc8ed411ab437a6baea5596531933a8 (diff)
downloadyosys-211d85cfcc1ae701bb9392347bcbb9750e3045b0.tar.gz
yosys-211d85cfcc1ae701bb9392347bcbb9750e3045b0.tar.bz2
yosys-211d85cfcc1ae701bb9392347bcbb9750e3045b0.zip
Fixes and cleanups in AST_TECALL handling
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/log.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index 9ce952cae..a7820950c 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -277,7 +277,7 @@ void log_file_warning(const std::string &filename, int lineno,
va_list ap;
va_start(ap, format);
std::string prefix = stringf("%s:%d: Warning: ",
- filename.c_str(), lineno);
+ filename.c_str(), lineno);
logv_warning_with_prefix(prefix.c_str(), format, ap);
va_end(ap);
}
@@ -287,9 +287,9 @@ void log_file_info(const std::string &filename, int lineno,
{
va_list ap;
va_start(ap, format);
- std::string prefix = stringf("%s:%d: Info: ",
- filename.c_str(), lineno);
- logv_warning_with_prefix(prefix.c_str(), format, ap);
+ std::string fmt = stringf("%s:%d: Info: %s",
+ filename.c_str(), lineno, format);
+ logv(fmt.c_str(), ap);
va_end(ap);
}