aboutsummaryrefslogtreecommitdiff
path: root/include/apos/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos/assert.h')
-rw-r--r--include/apos/assert.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/apos/assert.h b/include/apos/assert.h
index 429134e..3255481 100644
--- a/include/apos/assert.h
+++ b/include/apos/assert.h
@@ -23,8 +23,7 @@
#define catastrophic_assert(x) \
do { \
if (unlikely(!(x))) { \
- error("catastrophic assertion failed: %s\n", \
- QUOTE(x)); \
+ error("catastrophic assertion failed: " QUOTE(x) "\n"); \
while (1) { \
} \
} \
@@ -33,7 +32,7 @@
#define hard_assert(x, r) \
{ \
if (unlikely(!(x))) { \
- warn("hard assertion failed: %s\n", QUOTE(x)); \
+ warn("hard assertion failed: " QUOTE(x) "\n"); \
return r; \
} \
}
@@ -41,7 +40,7 @@
#define soft_assert(x) \
do { \
if (unlikely(!(x))) { \
- info("soft assertion failed: %s\n", QUOTE(x)); \
+ info("soft assertion failed: " QUOTE(x) "\n"); \
} \
} while (0);
#else