From e59ffbb84b785fe4067e1765717ca6c9882bb531 Mon Sep 17 00:00:00 2001 From: Chip Davis Date: Fri, 7 Dec 2018 17:47:02 -0600 Subject: [PATCH] Log to stderr instead of stdout. --- Common/MVKLogging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/MVKLogging.h b/Common/MVKLogging.h index c7af7507..0975ccdf 100644 --- a/Common/MVKLogging.h +++ b/Common/MVKLogging.h @@ -183,7 +183,7 @@ static inline void MVKLogImplV(bool logToPrintf, bool logToASL, int aslLvl, cons char lvlFmt[strlen(lvlStr) + strlen(format) + 5]; sprintf(lvlFmt, "[%s] %s\n", lvlStr, format); - if (logToPrintf) { vprintf(lvlFmt, args); } + if (logToPrintf) { vfprintf(stderr, lvlFmt, args); } // if (logToASL) { asl_vlog(NULL, NULL, aslLvl, lvlFmt, args); } // Multi-threaded ASL support requires a separate ASL client to be opened per thread! }