summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index bfd3ce8b7b..e7ab5feeac 100644
--- a/include/common.h
+++ b/include/common.h
@@ -72,10 +72,11 @@
#ifndef WARN
#define WARN(condition, format...) ({ \
int __ret_warn_on = !!(condition); \
- if (unlikely(__ret_warn_on)) \
+ if (unlikely(__ret_warn_on)) { \
__WARN(); \
puts("WARNING: "); \
printf(format); \
+ } \
unlikely(__ret_warn_on); \
})
#endif