aboutsummaryrefslogtreecommitdiff
path: root/src/zjs_common.h
diff options
context:
space:
mode:
authorGeoff Gustafson <geoff@linux.intel.com>2016-11-14 09:56:27 -0800
committerJimmy Huang <jimmy.huang@linux.intel.com>2016-11-14 09:56:27 -0800
commitafe5b799fa44663eb5bb392bf4d390408c34dd4c (patch)
tree349c8dc191c27b83fb13b9dafc34cec8d60b7a15 /src/zjs_common.h
parent22dbb3d188d7286704342eeb5f42a307971d1114 (diff)
[general] Print ERR_PRINT messages in release builds (#429)
We don't want to miss errors when we're in release builds. Things for debug only belong in DBG_PRINT. Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
Diffstat (limited to 'src/zjs_common.h')
-rw-r--r--src/zjs_common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zjs_common.h b/src/zjs_common.h
index 3b08899..b9bdc82 100644
--- a/src/zjs_common.h
+++ b/src/zjs_common.h
@@ -24,7 +24,9 @@ int zjs_get_ms(void);
#else
#define DBG_PRINT(fmat ...) do {} while(0);
-#define ERR_PRINT(fmat ...) do {} while(0);
+#define ERR_PRINT \
+ ZJS_PRINT("[ERROR] %s:%d %s(): ", __FILE__, __LINE__, __func__); \
+ ZJS_PRINT
#endif
// TODO: We should instead have a macro that changes in debug vs. release build,