From ef3677633cdc81c669289bdb719973fb1c219f0d Mon Sep 17 00:00:00 2001 From: radius Date: Wed, 26 Sep 2018 18:00:39 -0500 Subject: [PATCH] [record] fix logging --- menu/menu_setting.c | 4 ++-- record/drivers/record_ffmpeg.c | 4 ++-- record/record_driver.c | 22 +++++++++++----------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 7fd2ade963..cf6a253cfc 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -2973,7 +2973,7 @@ static void update_streaming_url_write_handler(rarch_setting_t *setting) else { /* To-Do: Show input box for twitch_stream_key*/ - RARCH_LOG("[record] twitch streaming key empty"); + RARCH_LOG("[recording] twitch streaming key empty"); } break; } @@ -2987,7 +2987,7 @@ static void update_streaming_url_write_handler(rarch_setting_t *setting) else { /* To-Do: Show input box for youtube_stream_key*/ - RARCH_LOG("[record] youtube streaming key empty"); + RARCH_LOG("[recording] youtube streaming key empty"); } break; } diff --git a/record/drivers/record_ffmpeg.c b/record/drivers/record_ffmpeg.c index 6d2f4fb462..2ae537fee8 100644 --- a/record/drivers/record_ffmpeg.c +++ b/record/drivers/record_ffmpeg.c @@ -700,7 +700,7 @@ static bool ffmpeg_init_config(struct ff_config_param *params, params->conf = config_file_new(config); if (!params->conf) { - RARCH_ERR("Failed to load FFmpeg config \"%s\".\n", config); + RARCH_ERR("[FFmpeg] Failed to load FFmpeg config \"%s\".\n", config); return false; } @@ -735,7 +735,7 @@ static bool ffmpeg_init_config(struct ff_config_param *params, params->out_pix_fmt = av_get_pix_fmt(pix_fmt); if (params->out_pix_fmt == PIX_FMT_NONE) { - RARCH_ERR("Cannot find pix_fmt \"%s\".\n", pix_fmt); + RARCH_ERR("[FFmpeg] Cannot find pix_fmt \"%s\".\n", pix_fmt); return false; } } diff --git a/record/record_driver.c b/record/record_driver.c index 0d36edd0ce..aca643ab44 100644 --- a/record/record_driver.c +++ b/record/record_driver.c @@ -118,12 +118,12 @@ void find_record_driver(void) { unsigned d; - RARCH_ERR("Couldn't find any record driver named \"%s\"\n", + RARCH_ERR("[recording] Couldn't find any record driver named \"%s\"\n", settings->arrays.record_driver); RARCH_LOG_OUTPUT("Available record drivers are:\n"); for (d = 0; record_driver_find_handle(d); d++) RARCH_LOG_OUTPUT("\t%s\n", record_driver_find_ident(d)); - RARCH_WARN("Going to default to first record driver...\n"); + RARCH_WARN("[recording] Going to default to first record driver...\n"); } recording_driver = (const record_driver_t*)record_driver_find_handle(0); @@ -216,7 +216,7 @@ void recording_dump_frame(const void *data, unsigned width, if (!vp.width || !vp.height) { - RARCH_WARN("%s \n", + RARCH_WARN("[recording] %s \n", msg_hash_to_str(MSG_VIEWPORT_SIZE_CALCULATION_FAILED)); command_event(CMD_EVENT_GPU_RECORD_DEINIT, NULL); @@ -228,7 +228,7 @@ void recording_dump_frame(const void *data, unsigned width, if ( vp.width != recording_gpu_width || vp.height != recording_gpu_height) { - RARCH_WARN("%s\n", msg_hash_to_str(MSG_RECORDING_TERMINATED_DUE_TO_RESIZE)); + RARCH_WARN("[recording] %s\n", msg_hash_to_str(MSG_RECORDING_TERMINATED_DUE_TO_RESIZE)); runloop_msg_queue_push( msg_hash_to_str(MSG_RECORDING_TERMINATED_DUE_TO_RESIZE), @@ -335,7 +335,7 @@ bool recording_init(void) if (rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL)) { - RARCH_WARN("%s\n", + RARCH_WARN("[recording] %s\n", msg_hash_to_str(MSG_USING_LIBRETRO_DUMMY_CORE_RECORDING_SKIPPED)); return false; } @@ -343,12 +343,12 @@ bool recording_init(void) if (!settings->bools.video_gpu_record && video_driver_is_hw_context()) { - RARCH_WARN("%s.\n", + RARCH_WARN("[recording] %s.\n", msg_hash_to_str(MSG_HW_RENDERED_MUST_USE_POSTSHADED_RECORDING)); return false; } - RARCH_LOG("%s: FPS: %.4f, Sample rate: %.4f\n", + RARCH_LOG("[recording] %s: FPS: %.4f, Sample rate: %.4f\n", msg_hash_to_str(MSG_CUSTOM_TIMING_GIVEN), (float)av_info->timing.fps, (float)av_info->timing.sample_rate); @@ -417,7 +417,7 @@ bool recording_init(void) if (!vp.width || !vp.height) { - RARCH_ERR("Failed to get viewport information from video driver. " + RARCH_ERR("[recording] Failed to get viewport information from video driver. " "Cannot start recording ...\n"); return false; } @@ -437,7 +437,7 @@ bool recording_init(void) recording_gpu_width = vp.width; recording_gpu_height = vp.height; - RARCH_LOG("%s %u x %u\n", msg_hash_to_str(MSG_DETECTED_VIEWPORT_OF), + RARCH_LOG("[recording] %s %u x %u\n", msg_hash_to_str(MSG_DETECTED_VIEWPORT_OF), vp.width, vp.height); gpu_size = vp.width * vp.height * 3; @@ -477,7 +477,7 @@ bool recording_init(void) } } - RARCH_LOG("%s %s @ %ux%u. (FB size: %ux%u pix_fmt: %u)\n", + RARCH_LOG("[recording] %s %s @ %ux%u. (FB size: %ux%u pix_fmt: %u)\n", msg_hash_to_str(MSG_RECORDING_TO), output, params.out_width, params.out_height, @@ -486,7 +486,7 @@ bool recording_init(void) if (!record_driver_init_first(&recording_driver, &recording_data, ¶ms)) { - RARCH_ERR("%s\n", msg_hash_to_str(MSG_FAILED_TO_START_RECORDING)); + RARCH_ERR("[recording] %s\n", msg_hash_to_str(MSG_FAILED_TO_START_RECORDING)); command_event(CMD_EVENT_GPU_RECORD_DEINIT, NULL); return false;