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:
parent
a75db59cf7
commit
c86b2d8f73
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue