diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-20 20:12:50 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-21 14:48:28 +0200 |
commit | 639405b934c7785b2b8eebe26a4e584af6869069 (patch) | |
tree | 6a09abf12081d4cb7cf114ecdd04044ae6c9e7ce /src | |
parent | eb5b6b73103bf707111d19335cda19d3006bfd39 (diff) | |
download | systemd-639405b934c7785b2b8eebe26a4e584af6869069.tar.gz |
hostnamectl,localectl: use "(unset)" in empty fields
"n/a" is more ambiguous: not available or not set or maybe we didn't check it.
Let's just say directly that the field is not set.
Diffstat (limited to 'src')
-rw-r--r-- | src/hostname/hostnamectl.c | 2 | ||||
-rw-r--r-- | src/locale/localectl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c index a96241c42e..abaea404a7 100644 --- a/src/hostname/hostnamectl.c +++ b/src/hostname/hostnamectl.c @@ -92,7 +92,7 @@ static int print_status_info(StatusInfo *i) { table_set_header(table, false); - r = table_set_empty_string(table, "n/a"); + r = table_set_empty_string(table, "(unset)"); if (r < 0) return log_oom(); diff --git a/src/locale/localectl.c b/src/locale/localectl.c index ebbf107432..b52a56be71 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -81,7 +81,7 @@ static int print_status_info(StatusInfo *i) { table_set_header(table, false); - r = table_set_empty_string(table, "n/a"); + r = table_set_empty_string(table, "(unset)"); if (r < 0) return log_oom(); |