projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f08482
)
firstboot: reduce log level of timezone validation
author
Michael Ferrari
<nekkodroid404@gmail.com>
Thu, 6 Jun 2024 14:06:34 +0000
(16:06 +0200)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 5 Sep 2024 01:08:42 +0000
(10:08 +0900)
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.
src/firstboot/firstboot.c
patch
|
blob
|
history
diff --git
a/src/firstboot/firstboot.c
b/src/firstboot/firstboot.c
index cdd416b571495e6cd21d138ba0df5ec7fa886c16..85ceffa13b8e8da0c79a54ccdbb9ff28b0f894c7 100644
(file)
--- 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;