summaryrefslogtreecommitdiffstats
path: root/src/include/assert.h
diff options
context:
space:
mode:
authorSimon Rettberg2026-01-28 12:53:53 +0100
committerSimon Rettberg2026-01-28 12:53:53 +0100
commit8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch)
treea8b359e59196be5b2e3862bed189107f4bc9975f /src/include/assert.h
parentMerge branch 'master' into openslx (diff)
parent[prefix] Make unlzma.S compatible with 386 class CPUs (diff)
downloadipxe-openslx.tar.gz
ipxe-openslx.tar.xz
ipxe-openslx.zip
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/include/assert.h')
-rw-r--r--src/include/assert.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/assert.h b/src/include/assert.h
index 01a287855..30277f9a9 100644
--- a/src/include/assert.h
+++ b/src/include/assert.h
@@ -11,6 +11,7 @@
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+FILE_SECBOOT ( PERMITTED );
#ifndef ASSERTING
#ifdef NDEBUG
@@ -49,9 +50,9 @@ assert_printf ( const char *fmt, ... ) asm ( "printf" );
#define assert( condition ) \
do { \
if ( ASSERTING && ! (condition) ) { \
- assertion_failures++; \
assert_printf ( "assert(%s) failed at %s line %d\n", \
#condition, __FILE__, __LINE__ ); \
+ assertion_failures++; \
} \
} while ( 0 )