aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/log.h')
-rw-r--r--kernel/log.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/log.h b/kernel/log.h
index 3e280a6f6..2c3597c9a 100644
--- a/kernel/log.h
+++ b/kernel/log.h
@@ -51,13 +51,10 @@ void log_reset_stack();
void log_flush();
const char *log_signal(const RTLIL::SigSpec &sig, bool autoint = true);
-
-static inline const char *log_id(std::string id) {
- return RTLIL::id2cstr(id);
-}
+const char *log_id(std::string id);
template<typename T> static inline const char *log_id(T *obj) {
- return RTLIL::id2cstr(obj->name);
+ return log_id(obj->name);
}
#define log_abort() log_error("Abort in %s:%d.\n", __FILE__, __LINE__)