diff options
author | Geoff Gustafson <geoff@linux.intel.com> | 2016-11-14 09:56:27 -0800 |
---|---|---|
committer | Jimmy Huang <jimmy.huang@linux.intel.com> | 2016-11-14 09:56:27 -0800 |
commit | afe5b799fa44663eb5bb392bf4d390408c34dd4c (patch) | |
tree | 349c8dc191c27b83fb13b9dafc34cec8d60b7a15 /src/zjs_common.h | |
parent | 22dbb3d188d7286704342eeb5f42a307971d1114 (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.h | 4 |
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, |