Log level prefix cleanup (#15852)

This commit is contained in:
sonninnos 2023-11-01 00:52:02 +02:00 committed by GitHub
parent 232095797e
commit 2a51e66120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -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:

View File

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