[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 <noreply@anthropic.com>
This commit is contained in:
Behdad Esfahbod committed 2026-04-14 20:48:17 -06:00
1 parent 644b007df5
commit 6828ad2865
1 file changed
+1 -1
+1 -1
View File
@@ -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 ())