From 2a51e661202025a9df690b06a0ffe63903b7e721 Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Wed, 1 Nov 2023 00:52:02 +0200 Subject: [PATCH] Log level prefix cleanup (#15852) --- runloop.c | 8 ++++---- verbosity.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/runloop.c b/runloop.c index e8e75ed0f5cf..e4e325becb2d 100644 --- a/runloop.c +++ b/runloop.c @@ -896,19 +896,19 @@ static void libretro_log_cb( switch (level) { case RETRO_LOG_DEBUG: - RARCH_LOG_V("[libretro DEBUG]", fmt, vp); + RARCH_LOG_V("libretro " FILE_PATH_LOG_DBG, fmt, vp); break; case RETRO_LOG_INFO: - RARCH_LOG_OUTPUT_V("[libretro INFO]", fmt, vp); + RARCH_LOG_OUTPUT_V("libretro " FILE_PATH_LOG_INFO, fmt, vp); break; case RETRO_LOG_WARN: - RARCH_WARN_V("[libretro WARN]", fmt, vp); + RARCH_WARN_V("libretro " FILE_PATH_LOG_WARN, fmt, vp); break; case RETRO_LOG_ERROR: - RARCH_ERR_V("[libretro ERROR]", fmt, vp); + RARCH_ERR_V("libretro " FILE_PATH_LOG_ERROR, fmt, vp); break; default: diff --git a/verbosity.h b/verbosity.h index 39fe0743e366..731de2451099 100644 --- a/verbosity.h +++ b/verbosity.h @@ -32,10 +32,10 @@ RETRO_BEGIN_DECLS -#define FILE_PATH_LOG_DBG "[DEBUG]" -#define FILE_PATH_LOG_INFO "[INFO]" -#define FILE_PATH_LOG_ERROR "[ERROR]" -#define FILE_PATH_LOG_WARN "[WARN]" +#define FILE_PATH_LOG_DBG "[DBG]" +#define FILE_PATH_LOG_INFO "[NFO]" +#define FILE_PATH_LOG_ERROR "[ERR]" +#define FILE_PATH_LOG_WARN "[WRN]" bool verbosity_is_enabled(void);