summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-02 14:35:34 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-02 14:39:07 +0200
commitb344bcbbfda8fbe14dadc5aa4b5dfb3ced6d76e2 (patch)
treea8d6b0f5f1cbcb1d762b81671ba3029a20de42af /src/locale
parent63229aa1abdb98aa69fda9819ed2f40c8082762b (diff)
localectl: always print warnings with log_warning() instead of printf()
They really should got to stderr, not stdout.
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/localectl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/locale/localectl.c b/src/locale/localectl.c
index 9325d9af6d..3690f9fc89 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++)