From 5da9558fa8a6be6e98eb0a7a7d0c6dd8bd86347f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 14 Mar 2014 16:39:50 +0100 Subject: [PATCH] Added log_dump() support for generic pointers --- kernel/log.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/log.h b/kernel/log.h index fbc3c1c39..5fbd2fc68 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -128,6 +128,9 @@ static inline void log_dump_val_worker(std::string v) { log("%s", v.c_str()); } static inline void log_dump_val_worker(RTLIL::SigSpec v) { log("%s", log_signal(v)); } static inline void log_dump_args_worker(const char *p) { log_assert(*p == 0); } +template +static inline void log_dump_val_worker(T *ptr) { log("%p", ptr); } + template void log_dump_args_worker(const char *p, T first, Args ... args) { -- 2.30.2