X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flocale%2Flocalectl.c;h=3690f9fc892c5037a15a42a09eb3e2f537291e3e;hp=9325d9af6d1716aab3d892fc5dbf390cee19ea0e;hb=9f03ee51a2207954ef18be79ca3e11cd14ca56fd;hpb=63229aa1abdb98aa69fda9819ed2f40c8082762b diff --git a/src/locale/localectl.c b/src/locale/localectl.c index 9325d9af6..3690f9fc8 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -117,13 +117,12 @@ static void print_overriden_variables(void) { for (j = 0; j < _VARIABLE_LC_MAX; j++) if (variables[j]) { if (print_warning) { - printf("Warning: Settings on Kernel Command Line override system locale settings in /etc/locale.conf\n"); - printf(" Command Line: %s=%s\n", locale_variable_to_string(j), variables[j]); + log_warning("Warning: Settings on kernel command line override system locale settings in /etc/locale.conf.\n" + " Command Line: %s=%s\n", locale_variable_to_string(j), variables[j]); print_warning = false; - continue; - } - printf(" %s=%s\n", locale_variable_to_string(j), variables[j]); + } else + log_warning(" %s=%s\n", locale_variable_to_string(j), variables[j]); } finish: for (j = 0; j < _VARIABLE_LC_MAX; j++)