mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
lkmc.c: flush stdout after assert_fail
Noticed that it wasn't showing error messages anymore. Something must have changed since last stdlib update? Was working before of course.
This commit is contained in:
1
lkmc.c
1
lkmc.c
@@ -23,6 +23,7 @@ LKMC_ASSERT_EQ_DEFINE(64)
|
|||||||
|
|
||||||
void lkmc_assert_fail(uint32_t line) {
|
void lkmc_assert_fail(uint32_t line) {
|
||||||
printf("error: assertion failed at line: %" PRIu32 "\n", line);
|
printf("error: assertion failed at line: %" PRIu32 "\n", line);
|
||||||
|
fflush(stdout);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user