aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/util.h b/include/util.h
index b6c64e0..e19dbe8 100644
--- a/include/util.h
+++ b/include/util.h
@@ -1,8 +1,6 @@
#include <stdio.h>
-#define err_die(r, ...) {\
- fprintf(stderr, "%s:%d: ", __FILE__, __LINE__); \
- fprintf(stderr, __VA_ARGS__); \
- fputc('\n', stderr); \
+#define err_ret(r, fmt, ...) {\
+ fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
return r; \
}