aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/inc/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libc/inc/assert.h')
-rw-r--r--libs/libc/inc/assert.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/libc/inc/assert.h b/libs/libc/inc/assert.h
index fb5a857..6b35dd3 100644
--- a/libs/libc/inc/assert.h
+++ b/libs/libc/inc/assert.h
@@ -18,9 +18,10 @@
#elif defined(USER)
#define assert(exp) \
{ \
- if (!(exp)) \
+ if (!(exp)) { \
err(1, "%s:%d: %s: Assertion '%s' failed\n", __FILE__, __LINE__, __func__, \
#exp); \
+ } \
}
#endif