Log to stderr instead of stdout.

This commit is contained in:
Chip Davis 2018-12-07 17:47:02 -06:00
parent 601acf6884
commit e59ffbb84b

View File

@ -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!
}