From 21ac44d1203ff5e0bd41312f198caa41cf210c8c Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Wed, 3 May 2023 23:37:59 +0200 Subject: [PATCH] common: fixing log std stream By mistake, stdout was switched to stderr for logs. Fixed. --- src/lib/tvgCommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tvgCommon.h b/src/lib/tvgCommon.h index d7bd5841..1731647c 100644 --- a/src/lib/tvgCommon.h +++ b/src/lib/tvgCommon.h @@ -72,7 +72,7 @@ enum class FileType { Tvg = 0, Svg, Raw, Png, Jpg, Unknown }; constexpr auto GreyColor = "\033[90m"; //grey constexpr auto ResetColors = "\033[0m"; //default #define TVGERR(tag, fmt, ...) fprintf(stderr, "%s[E]%s %s" tag "%s (%s %d): %s" fmt "\n", ErrorBgColor, ResetColors, ErrorColor, GreyColor, __FILE__, __LINE__, ResetColors, ##__VA_ARGS__) - #define TVGLOG(tag, fmt, ...) fprintf(stderr, "%s[L]%s %s" tag "%s (%s %d): %s" fmt "\n", LogBgColor, ResetColors, LogColor, GreyColor, __FILE__, __LINE__, ResetColors, ##__VA_ARGS__) + #define TVGLOG(tag, fmt, ...) fprintf(stdout, "%s[L]%s %s" tag "%s (%s %d): %s" fmt "\n", LogBgColor, ResetColors, LogColor, GreyColor, __FILE__, __LINE__, ResetColors, ##__VA_ARGS__) #else #define TVGERR(...) #define TVGLOG(...)