From 5e5799a319a947d63bbdac4a1b0bc7ef3828af81 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 20 Dec 2024 15:43:55 +1000 Subject: [PATCH] test: log litest_checkpoint to stderr Otherwise the logs are detached from libinput's logs (which are printed to stderr) which makes the checkpoint function mostly useless since it doesn't actually group the messages as expected. Part-of: --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index d33339a7..78b2c34e 100644 --- a/test/litest.c +++ b/test/litest.c @@ -145,7 +145,7 @@ _litest_checkpoint(const char *func, va_start(args, format); if (verbose) { vsnprintf(buf, sizeof(buf), format, args); - printf(ANSI_BRIGHT_BLUE "%s():%d - " ANSI_BRIGHT_RED "%s" ANSI_NORMAL "\n", func, line, buf); \ + fprintf(stderr, ANSI_BRIGHT_BLUE "%s():%d - " ANSI_BRIGHT_RED "%s" ANSI_NORMAL "\n", func, line, buf); \ } va_end(args); }