summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2016-02-23 10:48:29 +0100
committerDimitri Staessens <[email protected]>2016-02-23 10:50:09 +0100
commit8dea4896c5f69aa2faf77b77028ad968709e705f (patch)
tree8f5eea3d7ab55b8f8c9e79003e51e6c59c351dc6 /include
parentf128b07498d22d5bc0cea0270e960b2b7c66248c (diff)
downloadouroboros-8dea4896c5f69aa2faf77b77028ad968709e705f.tar.gz
ouroboros-8dea4896c5f69aa2faf77b77028ad968709e705f.zip
logs.h: Added LOG_DBGF macro
Displays the function name in the log message.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/logs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ouroboros/logs.h b/include/ouroboros/logs.h
index c72fb9ae..6f9986dc 100644
--- a/include/ouroboros/logs.h
+++ b/include/ouroboros/logs.h
@@ -43,6 +43,8 @@
#define LOG_DBG(FMT, ARGS...) do { } while (0)
#endif
+#define LOG_DBGF(FMT, ARGS...) LOG_DBG("%s: " FMT, __FUNCTION__, ##ARGS)
+
#define LOG_MISSING LOG_ERR("Missing code in %s:%d",__FILE__, __LINE__)
#endif