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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1116>
This commit is contained in:
Peter Hutterer 2024-12-20 15:43:55 +10:00
parent 9ac040f72a
commit 5e5799a319

View file

@ -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);
}