diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-06 09:34:41 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-09 04:10:10 +0900 |
commit | 9e3e10c725360b9d07018cfcd5b7b6b7d325fae5 (patch) | |
tree | c3de9ca1974443fb36319e74ac0b7b893a3a39eb /scripts/kconfig/conf.c | |
parent | f3ff6fb5db68bcd460e9880d5fb4902520dd645b (diff) | |
download | talos-op-linux-9e3e10c725360b9d07018cfcd5b7b6b7d325fae5.tar.gz talos-op-linux-9e3e10c725360b9d07018cfcd5b7b6b7d325fae5.zip |
kconfig: send error messages to stderr
These messages should be directed to stderr.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r-- | scripts/kconfig/conf.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index fe59f6df4b45..822dc51923d6 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -548,7 +548,7 @@ int main(int ac, char **av) } } if (ac == optind) { - printf(_("%s: Kconfig file missing\n"), av[0]); + fprintf(stderr, _("%s: Kconfig file missing\n"), av[0]); conf_usage(progname); exit(1); } @@ -573,9 +573,11 @@ int main(int ac, char **av) if (!defconfig_file) defconfig_file = conf_get_default_confname(); if (conf_read(defconfig_file)) { - printf(_("***\n" - "*** Can't find default configuration \"%s\"!\n" - "***\n"), defconfig_file); + fprintf(stderr, + _("***\n" + "*** Can't find default configuration \"%s\"!\n" + "***\n"), + defconfig_file); exit(1); } break; |