From 5f05f192de779ba4690d98255e9fc365c0e6587a Mon Sep 17 00:00:00 2001 From: Geoffrey Challen Date: Fri, 8 Jan 2016 15:51:06 -0500 Subject: [PATCH] Fix sprintf shell prompt. --- userland/lib/libc/stdio/printf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userland/lib/libc/stdio/printf.c b/userland/lib/libc/stdio/printf.c index 51553b0..52a8161 100644 --- a/userland/lib/libc/stdio/printf.c +++ b/userland/lib/libc/stdio/printf.c @@ -104,7 +104,9 @@ printsf(const char *fmt, ...) int chars; va_list ap; - printf("%s: ", KERNEL_SECRET); + if (strcmp(KERNEL_SECRET, "") != 0) { + printf("%s: ", KERNEL_SECRET); + } va_start(ap, fmt); chars = vprintf(fmt, ap); va_end(ap);