diff options
Diffstat (limited to 'kern/assert.h')
-rw-r--r-- | kern/assert.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/assert.h b/kern/assert.h index d0fd08a5..7c06f6a7 100644 --- a/kern/assert.h +++ b/kern/assert.h @@ -30,9 +30,10 @@ */ #define assert(expression) \ MACRO_BEGIN \ - if (unlikely(!(expression))) \ + if (unlikely(!(expression))) { \ panic("assertion (%s) failed in %s:%d, function %s()", \ __QUOTE(expression), __FILE__, __LINE__, __func__); \ + } \ MACRO_END #endif /* NDEBUG */ |