diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-02-21 09:46:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-02-21 15:11:27 +0100 |
commit | 8f894121d15ea63c6047cad6b2a9a95ea472a0d2 (patch) | |
tree | e21427e291391c8d17a43b4af6e8731762570a14 /src/journal/bsod.c | |
parent | bsod: make sure "Press Any Key" has a blue background too (diff) | |
download | systemd-8f894121d15ea63c6047cad6b2a9a95ea472a0d2.tar.xz systemd-8f894121d15ea63c6047cad6b2a9a95ea472a0d2.zip |
bsod: correct log level on some messages
Diffstat (limited to 'src/journal/bsod.c')
-rw-r--r-- | src/journal/bsod.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/journal/bsod.c b/src/journal/bsod.c index 05c3205d44..30f790dbbe 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; } |