From: Michael Ferrari Date: Thu, 6 Jun 2024 14:06:34 +0000 (+0200) Subject: firstboot: reduce log level of timezone validation X-Git-Tag: v257-rc1~555^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F34235%2Fhead;p=thirdparty%2Fsystemd.git firstboot: reduce log level of timezone validation An error message is already printed directly after, so the user already knows that the validation failed. This also isn't done for the other validation functions. --- diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index cdd416b5714..85ceffa13b8 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -559,8 +559,8 @@ static int process_keymap(int rfd) { return 1; } -static bool timezone_is_valid_log_error(const char *name) { - return timezone_is_valid(name, LOG_ERR); +static bool timezone_is_valid_log_debug(const char *name) { + return timezone_is_valid(name, LOG_DEBUG); } static int prompt_timezone(int rfd) { @@ -592,7 +592,7 @@ static int prompt_timezone(int rfd) { print_welcome(rfd); r = prompt_loop("Please enter timezone name or number", - zones, 30, timezone_is_valid_log_error, &arg_timezone); + zones, 30, timezone_is_valid_log_debug, &arg_timezone); if (r < 0) return r;