um: Use os_warn to print out pre-boot warning/error messages

Use os_warn() instead of printf/fprintf to print out
pre-boot warning/error messages to stderr.
Note that the help message and version message are
kept to print out to stdout, because user explicitly
specifies those options to get such information.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Masami Hiramatsu
2017-05-18 02:19:31 +09:00
committed by Richard Weinberger
parent 721ccae88d
commit 0936d4f3d5
8 changed files with 26 additions and 24 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ int main(int argc, char**argv)
int ret;
argc--;
if (!argc) {
fprintf(stderr, "Not enough arguments\n");
os_warn("Not enough arguments\n");
return 1;
}
argv++;