From d80b4c6cccde7ff17c0d2965a2f4dd26bbebb5b1 Mon Sep 17 00:00:00 2001 From: Fernando Carmona Varo Date: Sat, 19 Oct 2019 16:12:47 +0200 Subject: [PATCH] Some tweaks to log levels and output format --- libretro/libretro.c | 4 ++-- src/d_main.c | 10 +++++----- src/g_game.c | 6 ++---- src/m_argv.c | 4 ++-- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/libretro/libretro.c b/libretro/libretro.c index d112f313..3edfc1da 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -352,7 +352,7 @@ void retro_set_controller_port_device(unsigned port, unsigned device) break; default: if (log_cb) - log_cb(RETRO_LOG_ERROR, "[libretro]: Invalid device, setting type to RETROPAD_CLASSIC ...\n"); + log_cb(RETRO_LOG_ERROR, "Invalid libretro controller device, using default: RETROPAD_CLASSIC\n"); doom_devices[port] = RETROPAD_CLASSIC; environ_cb(RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS, gp_classic.desc); } @@ -1427,7 +1427,7 @@ void R_InitInterpolation(void) tic_vars.sample_step = info.timing.sample_rate / tic_vars.fps; if (log_cb) - log_cb(RETRO_LOG_INFO, "[libretro]: Framerate set to %.2f FPS\n", info.timing.fps); + log_cb(RETRO_LOG_INFO, "R_InitInterpolation: Framerate set to %.2f FPS\n", info.timing.fps); } tic_vars.frac = FRACUNIT; } diff --git a/src/d_main.c b/src/d_main.c index 3cfb2cb1..e5abaeca 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -688,10 +688,10 @@ static char *FindIWADFile(void) char * iwad = NULL; i = M_CheckParm("-iwad"); - lprintf(LO_ALWAYS, "i: %d\n", i); + lprintf(LO_DEBUG, "i: %d\n", i); for(x = 0; x < 32; x++) - lprintf(LO_ALWAYS, "myargv[%d]: %s\n", x, myargv[x]); + lprintf(LO_DEBUG, "myargv[%d]: %s\n", x, myargv[x]); if (i && (++i < myargc)) { iwad = I_FindFile(myargv[i], NULL); @@ -732,7 +732,7 @@ static bool IdentifyVersion (void) // set save path to -save parm or current dir strcpy(basesavegame,I_DoomExeDir()); - lprintf(LO_ALWAYS, "IdentifyVersion: basesavegame: %s\n", basesavegame); + lprintf(LO_INFO, "IdentifyVersion: basesavegame: %s\n", basesavegame); #ifndef __CELLOS_LV2__ if ((i=M_CheckParm("-save")) && i0)