diff options
author | Sudarsana Nagineni <sudarsana.nagineni@intel.com> | 2017-10-06 10:19:03 -0700 |
---|---|---|
committer | Geoff Gustafson <geoff@linux.intel.com> | 2017-10-06 10:19:03 -0700 |
commit | 7198395a47627bab0d16b4ee6d5a7d16340a14fb (patch) | |
tree | 5f4e905a7853500de45361af546110727377b3b2 /src/zjs_common.h | |
parent | 8206aee80faf5a2a3e4e4fd9e3ee336423bebb24 (diff) |
[common] Do not include __FILE__ macro in non debug builds (#1570)
Using __FILE__ macro in non debug code is increasing the
image size depending on where the sources are built, so
this patch removes that macro from the non debug code.
Fixes #1550
Signed-off-by: Sudarsana Nagineni <sudarsana.nagineni@intel.com>
Diffstat (limited to 'src/zjs_common.h')
-rw-r--r-- | src/zjs_common.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/zjs_common.h b/src/zjs_common.h index 5e8026f..f561b6a 100644 --- a/src/zjs_common.h +++ b/src/zjs_common.h @@ -73,8 +73,7 @@ int zjs_get_ms(void); #else // !DEBUG_BUILD #define DBG_PRINT(fmt...) do {} while (0) #define ERR_PRINT \ - ZJS_PRINT("\n%s:%d %s():\n(ERROR) ", zjs_shorten_filepath(__FILE__), \ - __LINE__, __func__); \ + ZJS_PRINT("\n%d:(ERROR) ", __LINE__); \ ZJS_PRINT #endif // DEBUG_BUILD |