projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eda822
)
logging: fix die() arg passing
author
Marko Kreen
<markokr@gmail.com>
Sun, 12 Sep 2010 21:11:10 +0000
(
00:11
+0300)
committer
Marko Kreen
<markokr@gmail.com>
Wed, 15 Sep 2010 12:00:12 +0000
(15:00 +0300)
usual/logging.h
patch
|
blob
|
blame
|
history
diff --git
a/usual/logging.h
b/usual/logging.h
index 3f281b2157a153fe7feaaaf3cca4e720489b6083..f0d0df56e46df601b8ccd571d498b987304a1ae9 100644
(file)
--- a/
usual/logging.h
+++ b/
usual/logging.h
@@
-104,8
+104,8
@@
void log_fatal(const char *file, int line, const char *func, bool show_perror,
exit(1); } while (0)
/* less verbose fatal() */
-#define die(
msg,
args...) do { LOG_CONTEXT_DEF; \
- log_generic(LG_FATAL,
msg,
LOG_CONTEXT, ## args); \
+#define die(args...) do { LOG_CONTEXT_DEF; \
+ log_generic(LG_FATAL, LOG_CONTEXT, ## args); \
exit(1); } while (0)
void reset_logging(void);