From 6828ad28657287c25b4facedb98cfda55265722a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 14 Apr 2026 20:48:17 -0600 Subject: [PATCH] [util/gpu] Route LOGI to stderr LOGI is informational output (help text, toggle state, fps). It belongs on stderr: that keeps stdout available for program output (e.g. --output-file=- piping a PPM through a pipeline), and it matches LOGW/LOGE which already go to stderr. No user-visible change in normal (windowed) runs; stderr shows up in the same terminal as stdout by default. Assisted-by: Claude --- util/gpu/demo-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/gpu/demo-common.h b/util/gpu/demo-common.h index 5b2ef52f8..ab6c61c69 100644 --- a/util/gpu/demo-common.h +++ b/util/gpu/demo-common.h @@ -31,7 +31,7 @@ #endif -#define LOGI(...) ((void) fprintf (stdout, __VA_ARGS__)) +#define LOGI(...) ((void) fprintf (stderr, __VA_ARGS__)) #define LOGW(...) ((void) fprintf (stderr, __VA_ARGS__)) #define LOGE(...) ((void) fprintf (stderr, __VA_ARGS__), abort ())