Send SkDebugf through stderr and flush on Windows too.
This makes it consistent with Linux/Mac. There, stderr is not buffered, so the flush is not needed / implicit. BUG=skia: Review URL: https://codereview.chromium.org/1419073003
This commit is contained in:
parent
24a592c2ef
commit
bdef140b50
@ -21,11 +21,9 @@ void SkDebugf(const char format[], ...) {
|
||||
va_list args;
|
||||
|
||||
va_start(args, format);
|
||||
vprintf(format, args);
|
||||
vfprintf(stderr, format, args);
|
||||
va_end(args);
|
||||
// When we crash on Windows we often are missing a lot of prints. Since we don't really care
|
||||
// about SkDebugf performance we flush after every print.
|
||||
// fflush(stdout);
|
||||
fflush(stderr);
|
||||
|
||||
va_start(args, format);
|
||||
vsnprintf(buffer, kBufferSize, format, args);
|
||||
|
Loading…
Reference in New Issue
Block a user