From 92dbc8507e5260c20a8c5f48d6cf39e685750559 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 25 Apr 2023 14:16:16 +0900 Subject: [PATCH] common: polished the log message. Removed 'l.'. It just bothers in reading numbers. --- src/lib/tvgCommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/tvgCommon.h b/src/lib/tvgCommon.h index 9c3888a5..d7bd5841 100644 --- a/src/lib/tvgCommon.h +++ b/src/lib/tvgCommon.h @@ -71,8 +71,8 @@ enum class FileType { Tvg = 0, Svg, Raw, Png, Jpg, Unknown }; constexpr auto LogBgColor = "\033[42m"; //bg green 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 l.%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 l.%d): %s" fmt "\n", LogBgColor, ResetColors, LogColor, GreyColor, __FILE__, __LINE__, ResetColors, ##__VA_ARGS__) + #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__) #else #define TVGERR(...) #define TVGLOG(...)