summaryrefslogtreecommitdiff
path: root/src/pacman/log.h
diff options
context:
space:
mode:
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 */