From: Clifford Wolf Date: Wed, 30 Jul 2014 13:58:21 +0000 (+0200) Subject: Added "log_dump_val_worker(char *v)" X-Git-Tag: yosys-0.4~362 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45fd26b76e1ca72927ab0a8ce207aab0d024eba3;p=yosys.git Added "log_dump_val_worker(char *v)" --- diff --git a/kernel/log.h b/kernel/log.h index 803365b39..a491d067d 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -196,6 +196,7 @@ static inline void log_dump_val_worker(char c) { log(c >= 32 && c < 127 ? "'%c'" static inline void log_dump_val_worker(unsigned char c) { log(c >= 32 && c < 127 ? "'%c'" : "'\\x%02x'", c); } static inline void log_dump_val_worker(bool v) { log("%s", v ? "true" : "false"); } static inline void log_dump_val_worker(double v) { log("%f", v); } +static inline void log_dump_val_worker(char *v) { log("%s", v); } static inline void log_dump_val_worker(const char *v) { log("%s", v); } static inline void log_dump_val_worker(std::string v) { log("%s", v.c_str()); } static inline void log_dump_val_worker(PerformanceTimer p) { log("%f seconds", p.sec()); }