diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-24 01:51:50 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-24 02:02:40 -0700 |
commit | 53702ab184e9133a9cfe28406c71cfdabf2e4db5 (patch) | |
tree | 444ded80df9a3ec758d8f4d9b6dbba367c8b78db | |
parent | c8033ae7ca10d45270794795498c813342b8f7b4 (diff) |
util: switch VWM_BUG macro from including strerror
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ #define VWM_ERROR(_fmt, _args...) fprintf(stderr, "%s:%i\t%s() "_fmt"\n", __FILE__, __LINE__, __FUNCTION__, ##_args) #define VWM_PERROR(_fmt, _args...) fprintf(stderr, "%s:%i\t%s() "_fmt"; %s\n", __FILE__, __LINE__, __FUNCTION__, ##_args, strerror(errno)) -#define VWM_BUG(_fmt, _args...) fprintf(stderr, "BUG %s:%i\t%s() "_fmt"; %s\n", __FILE__, __LINE__, __FUNCTION__, ##_args, strerror(errno)) +#define VWM_BUG(_fmt, _args...) VWM_ERROR("BUG: "_fmt, ##_args) #ifdef TRACE #define VWM_TRACE(_fmt, _args...) fprintf(stderr, "%s:%i\t%s() "_fmt"\n", __FILE__, __LINE__, __FUNCTION__, ##_args) |