On Wed, 24.09.14 17:18, Michal Sekletar (msekl...@redhat.com) wrote: Heya,
> + for (j = VARIABLE_LANG; j < _VARIABLE_LC_MAX; j++) I think it is much nicer to count from an explicit "0" on here, instead of "VARIABLE_LANG", since this makes the loop work correctly even if the order of the enum is changed. > + 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]); Warnings should be printed with log_warning() and not printf() so that they end up on stderr, not stdout. I fixed this now in git. Thanks, Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel