From 8f894121d15ea63c6047cad6b2a9a95ea472a0d2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 21 Feb 2024 09:46:15 +0100 Subject: [PATCH] bsod: correct log level on some messages --- src/journal/bsod.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/journal/bsod.c b/src/journal/bsod.c index 05c3205d447..30f790dbbe3 100644 --- a/src/journal/bsod.c +++ b/src/journal/bsod.c @@ -73,16 +73,16 @@ static int acquire_first_emergency_log_message(char **ret) { r = add_match_this_boot(j, NULL); if (r < 0) - return log_warning_errno(r, "Failed to add boot ID filter: %m"); + return log_error_errno(r, "Failed to add boot ID filter: %m"); r = sd_journal_add_match(j, "_UID=0", 0); if (r < 0) - return log_warning_errno(r, "Failed to add User ID filter: %m"); + return log_error_errno(r, "Failed to add User ID filter: %m"); assert_cc(0 == LOG_EMERG); r = sd_journal_add_match(j, "PRIORITY=0", 0); if (r < 0) - return log_warning_errno(r, "Failed to add Emergency filter: %m"); + return log_error_errno(r, "Failed to add Emergency filter: %m"); r = sd_journal_seek_head(j); if (r < 0) @@ -191,7 +191,7 @@ static int display_emergency_message_fullscreen(const char *message) { r = loop_write(fd, "The current boot has failed!", SIZE_MAX); if (r < 0) { - ret = log_warning_errno(r, "Failed to write to terminal: %m"); + ret = log_error_errno(r, "Failed to write to terminal: %m"); goto cleanup; } @@ -203,7 +203,7 @@ static int display_emergency_message_fullscreen(const char *message) { r = loop_write(fd, message, SIZE_MAX); if (r < 0) { - ret = log_warning_errno(r, "Failed to write emergency message to terminal: %m"); + ret = log_error_errno(r, "Failed to write emergency message to terminal: %m"); goto cleanup; } @@ -223,7 +223,7 @@ static int display_emergency_message_fullscreen(const char *message) { r = loop_write(fd, ANSI_BACKGROUND_BLUE "Press any key to exit...", SIZE_MAX); if (r < 0) { - ret = log_warning_errno(r, "Failed to write to terminal: %m"); + ret = log_error_errno(r, "Failed to write to terminal: %m"); goto cleanup; } -- 2.47.3