From 53702ab184e9133a9cfe28406c71cfdabf2e4db5 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 24 Mar 2017 01:51:50 -0700 Subject: util: switch VWM_BUG macro from including strerror --- src/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.h b/src/util.h index 9bd6a31..4a3da06 100644 --- a/src/util.h +++ b/src/util.h @@ -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) -- cgit v1.2.3