From 3f084827fff476367b3a6f045c7cb5ca0ed848a1 Mon Sep 17 00:00:00 2001 From: Michael Ferrari Date: Wed, 5 Jun 2024 19:40:57 +0200 Subject: [PATCH] firstboot: reduce empty input log level The user knows they pressed `Enter`, no need to inform them again about that they skipped the prompt. --- src/firstboot/firstboot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index af17b527c15..cdd416b5714 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -209,7 +209,7 @@ static int prompt_loop(const char *text, char **l, unsigned percentage, bool (*i return log_error_errno(r, "Failed to query user: %m"); if (isempty(p)) { - log_warning("No data entered, skipping."); + log_info("No data entered, skipping."); return 0; } @@ -681,7 +681,7 @@ static int prompt_hostname(int rfd) { return log_error_errno(r, "Failed to query hostname: %m"); if (isempty(h)) { - log_warning("No hostname entered, skipping."); + log_info("No hostname entered, skipping."); break; } @@ -808,7 +808,7 @@ static int prompt_root_password(int rfd) { "Received multiple passwords, where we expected one."); if (isempty(*a)) { - log_warning("No password entered, skipping."); + log_info("No password entered, skipping."); break; } @@ -888,7 +888,7 @@ static int prompt_root_shell(int rfd) { return log_error_errno(r, "Failed to query root shell: %m"); if (isempty(s)) { - log_warning("No shell entered, skipping."); + log_info("No shell entered, skipping."); break; } -- 2.47.3