summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include/assert.h')
-rw-r--r--payloads/libpayload/include/assert.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/payloads/libpayload/include/assert.h b/payloads/libpayload/include/assert.h
index 9968504a44..8502881e32 100644
--- a/payloads/libpayload/include/assert.h
+++ b/payloads/libpayload/include/assert.h
@@ -36,5 +36,11 @@
// Heisenbugs appear if statement has side-effects. This could be worked around but does the standard allow for that?
#define assert(statement)
#else
-#define assert(statement) if ((statement) == 0) { fprintf(stderr, "assertion failed in file %s, function %s(), line %s\n", __FILE__, __FUNCTION__, __LINE__); abort(); }
+#define assert(statement) \
+ if ((statement) == 0) { \
+ fprintf(stderr, "assertion failed in file %s, " \
+ "function %s(), line %d\n", \
+ __FILE__, __FUNCTION__, __LINE__); \
+ abort(); \
+ }
#endif