Skip to content

Commit 3885f4f

Browse files
committed
Core updater logging cleanups
1 parent d5a5681 commit 3885f4f

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

intl/msg_hash_us.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14311,11 +14311,11 @@ MSG_HASH(
1431114311
)
1431214312
MSG_HASH(
1431314313
MSG_NUM_CORES_UPDATED,
14314-
"cores updated: "
14314+
"Cores updated: "
1431514315
)
1431614316
MSG_HASH(
1431714317
MSG_NUM_CORES_LOCKED,
14318-
"cores skipped: "
14318+
"Cores skipped: "
1431914319
)
1432014320
MSG_HASH(
1432114321
MSG_CORE_UPDATE_DISABLED,

tasks/task_core_updater.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static void cb_http_task_core_updater_get_list(
259259
finish:
260260
/* Log any error messages */
261261
if (!success)
262-
RARCH_ERR("[core updater] Download of core list '%s' failed: %s\n",
262+
RARCH_ERR("[Core Updater] Download of core list '%s' failed: %s\n",
263263
(transf ? transf->path: "unknown"),
264264
(err ? err : "unknown"));
265265

@@ -572,7 +572,7 @@ static void cb_decompress_task_core_updater_download(
572572

573573
/* Log any error messages */
574574
if (!string_is_empty(err))
575-
RARCH_ERR("[core updater] %s", err);
575+
RARCH_ERR("[Core Updater] %s", err);
576576
}
577577

578578
void cb_http_task_core_updater_download(
@@ -651,7 +651,7 @@ void cb_http_task_core_updater_download(
651651
/* Log any error messages */
652652
if (!string_is_empty(err))
653653
{
654-
RARCH_ERR("[core updater] Download of '%s' failed: %s\n",
654+
RARCH_ERR("[Core Updater] Download of '%s' failed: %s\n",
655655
(transf ? transf->path: "unknown"), err);
656656
download_handle->status = CORE_UPDATER_DOWNLOAD_ERROR;
657657
}
@@ -777,7 +777,7 @@ static void task_core_updater_download_handler(retro_task_t *task)
777777
/* This cannot realistically happen...
778778
* > If it does, just log an error and initialise
779779
* download */
780-
RARCH_ERR("[core updater] Failed to backup core: %s\n",
780+
RARCH_ERR("[Core Updater] Failed to backup core: %s\n",
781781
download_handle->local_core_path);
782782
download_handle->backup_enabled = false;
783783
download_handle->status = CORE_UPDATER_DOWNLOAD_START_TRANSFER;
@@ -1071,7 +1071,7 @@ void *task_push_core_updater_download(
10711071
* updater list provides 'sane' core paths */
10721072
if (core_info_get_core_lock(list_entry->local_core_path, false))
10731073
{
1074-
RARCH_ERR("[core updater] Update disabled - core is locked: %s\n",
1074+
RARCH_ERR("[Core Updater] Update disabled - core is locked: %s\n",
10751075
list_entry->local_core_path);
10761076

10771077
/* If task is not muted, generate notification */
@@ -1332,7 +1332,7 @@ static void task_update_installed_cores_handler(retro_task_t *task)
13321332
* updater list provides 'sane' core paths */
13331333
if (core_info_get_core_lock(list_entry->local_core_path, false))
13341334
{
1335-
RARCH_LOG("[core updater] Skipping locked core: %s\n",
1335+
RARCH_LOG("[Core Updater] Skipping locked core: %s\n",
13361336
list_entry->display_name);
13371337

13381338
/* Core update is disabled
@@ -1454,7 +1454,7 @@ static void task_update_installed_cores_handler(retro_task_t *task)
14541454
snprintf(
14551455
task_title + _len,
14561456
sizeof(task_title) - _len,
1457-
" [%s%u, %s%u]",
1457+
" (%s%u, %s%u)",
14581458
msg_hash_to_str(MSG_NUM_CORES_UPDATED),
14591459
update_installed_handle->num_updated,
14601460
msg_hash_to_str(MSG_NUM_CORES_LOCKED),
@@ -1463,15 +1463,15 @@ static void task_update_installed_cores_handler(retro_task_t *task)
14631463
snprintf(
14641464
task_title + _len,
14651465
sizeof(task_title) - _len,
1466-
" [%s%u]",
1466+
" (%s%u)",
14671467
msg_hash_to_str(MSG_NUM_CORES_UPDATED),
14681468
update_installed_handle->num_updated);
14691469
}
14701470
else if (update_installed_handle->num_locked > 0)
14711471
snprintf(
14721472
task_title + _len,
14731473
sizeof(task_title) - _len,
1474-
" [%s%u]",
1474+
" (%s%u)",
14751475
msg_hash_to_str(MSG_NUM_CORES_LOCKED),
14761476
update_installed_handle->num_locked);
14771477

0 commit comments

Comments
 (0)