diff --git a/hermit/libkern/stdio.c b/hermit/libkern/stdio.c index 89119f8db..20b5d2fcf 100644 --- a/hermit/libkern/stdio.c +++ b/hermit/libkern/stdio.c @@ -67,7 +67,7 @@ int kputchar(int c) int pos; /* add place holder for end of string */ - if (!c) + if (BUILTIN_EXPECT(!c, 0)) c = '?'; if (early_print != NO_EARLY_PRINT)