summaryrefslogtreecommitdiff
path: root/src/base/msg.h
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2009-12-08 15:15:14 +0100
committerMichal Zima <xhire@mujmalysvet.cz>2009-12-08 15:18:06 +0100
commitdf8a2c657b17a0b0bb7f990d6adbb40d514af82c (patch)
tree6be48154d8a22c2ea82efe429ad72acfe8447d90 /src/base/msg.h
parentd19e0c494ab4ea44b54467bae37c1f8e9f155cd0 (diff)
Bugfix of message macros
Diffstat (limited to 'src/base/msg.h')
-rw-r--r--src/base/msg.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/base/msg.h b/src/base/msg.h
index e9bdb3b..403100c 100644
--- a/src/base/msg.h
+++ b/src/base/msg.h
@@ -7,12 +7,12 @@
#define debug(msg,arg...)
#endif /* DEBUG */
-#define warning(msg,arg...) fprintf(stderr, "%s ", _("[Warning]")); fprintf(stderr, _(msg) "\n", ##arg)
-#define error(msg,arg...) fprintf(stderr, "%s ", _("[Error]")); fprintf(stderr, _(msg) "\n", ##arg)
-#define fatal(msg,arg...) \
-{ \
- fprintf(stderr, "%s ", _("[Fatal]")); fprintf(stderr, _(msg) "\n", ##arg); \
- abort(0); \
+#define warning(msg,arg...) fprintf(stderr, "%s ", _("[Warning]")); fprintf(stderr, _(msg), ##arg); fprintf(stderr, "\n")
+#define error(msg,arg...) fprintf(stderr, "%s ", _("[Error]")); fprintf(stderr, _(msg), ##arg); fprintf(stderr, "\n")
+#define fatal(msg,arg...) \
+{ \
+ fprintf(stderr, "%s ", _("[Fatal]")); fprintf(stderr, _(msg), ##arg); fprintf(stderr, "\n"); \
+ abort(); \
}
#endif /* MSG_H */