localectl: align output of 'localectl status' command
If kernel command line options for locale are given,
the output of 'localectl status' command is not aligned,
for example,
=============
Warning: Settings on kernel command line override system locale settings in /etc/locale.conf.
Command Line: LANG=C
System Locale: LANG=C
VC Keymap: n/a
X11 Layout: n/a
=============
This commit fixes the alignment.
This commit is contained in:
@@ -116,11 +116,11 @@ static void print_overridden_variables(void) {
|
||||
if (variables[j]) {
|
||||
if (print_warning) {
|
||||
log_warning("Warning: Settings on kernel command line override system locale settings in /etc/locale.conf.\n"
|
||||
" Command Line: %s=%s", locale_variable_to_string(j), variables[j]);
|
||||
" Command Line: %s=%s", locale_variable_to_string(j), variables[j]);
|
||||
|
||||
print_warning = false;
|
||||
} else
|
||||
log_warning(" %s=%s", locale_variable_to_string(j), variables[j]);
|
||||
log_warning(" %s=%s", locale_variable_to_string(j), variables[j]);
|
||||
}
|
||||
finish:
|
||||
for (j = 0; j < _VARIABLE_LC_MAX; j++)
|
||||
|
||||
Reference in New Issue
Block a user