]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
localectl: align output of 'localectl status' command 2892/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 24 Mar 2016 01:58:38 +0000 (10:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 24 Mar 2016 01:58:38 +0000 (10:58 +0900)
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.

src/locale/localectl.c

index 3494af15c610386c932265780225459a972f9e19..486533534954fee064701284480295068c081a4a 100644 (file)
@@ -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++)