Skip to content

Commit

Permalink
util: trap in assert instead of infinite loop
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Sep 18, 2024
1 parent 685aa55 commit 3880812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libvmm/util/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static void assert_fail(
const char *function)
{
printf("Failed assertion '%s' at %s:%u in function %s\n", assertion, file, line, function);
while (1) {}
__builtin_trap();
}

#define BIT_LOW(n) (1ul<<(n))
Expand Down

0 comments on commit 3880812

Please sign in to comment.