Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/pacman/log.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-14 18:43:51 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-14 18:43:51 +0000
commite4c9ab48959f3312afff074015e062f5791374a7 (patch)
tree053ac6f041a581b46b5ecca34de5afc1e44e5d00 /src/pacman/log.h
parent7ab3bb136decf09febc63861a4f274728d78e41e (diff)
- added a WARN macro to display warnings
- used ERR macro for error messages
Diffstat (limited to 'src/pacman/log.h')
-rw-r--r--src/pacman/log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pacman/log.h b/src/pacman/log.h
index 6cd5b346..bafaae81 100644
--- a/src/pacman/log.h
+++ b/src/pacman/log.h
@@ -26,6 +26,10 @@
pm_fprintf(stderr, line, "error: "); \
pm_fprintf(stderr, CL, fmt, ##args); \
} while(0)
+#define WARN(line, fmt, args...) do { \
+ pm_fprintf(stderr, line, "warning: "); \
+ pm_fprintf(stderr, CL, fmt, ##args); \
+} while(0)
enum {
NL, /* new line */