From e9e9b91904d5b098e1c69cd4ed23dfd65f6f212d Mon Sep 17 00:00:00 2001 From: Scott Haseley Date: Fri, 12 Feb 2016 00:57:16 -0500 Subject: [PATCH] Previous change that changed SECRET to a string broke userland compiles --- common/libc/printf/tprintf.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common/libc/printf/tprintf.c b/common/libc/printf/tprintf.c index caa51bb..f754453 100644 --- a/common/libc/printf/tprintf.c +++ b/common/libc/printf/tprintf.c @@ -15,8 +15,8 @@ tprintf(const char *fmt, ...) { int chars; va_list ap; - - if (SECRET != 0) { + + if (strcmp(SECRET, "") != 0) { return 0; } @@ -33,8 +33,8 @@ nprintf(const char *fmt, ...) { int chars; va_list ap; - - if (SECRET == 0) { + + if (strcmp(SECRET, "") == 0) { return 0; } @@ -51,9 +51,9 @@ printsf(const char *fmt, ...) { int chars; va_list ap; - - if (SECRET != 0) { - printf("%llu: ", (unsigned long long)SECRET); + + if (strcmp(SECRET, "") != 0) { + printf("%s: ", SECRET); } va_start(ap, fmt); chars = vprintf(fmt, ap);