From 0acff266e239d689cc611e1bdc62d2e0199d8b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Sun, 25 Aug 2019 00:00:00 +0000 Subject: [PATCH] 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. --- lkmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lkmc.c b/lkmc.c index 292a750..4a83d2f 100644 --- a/lkmc.c +++ b/lkmc.c @@ -23,6 +23,7 @@ LKMC_ASSERT_EQ_DEFINE(64) void lkmc_assert_fail(uint32_t line) { printf("error: assertion failed at line: %" PRIu32 "\n", line); + fflush(stdout); abort(); }