summaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/execvp.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2017-05-17 19:19:31 +0200
committerRichard Weinberger <richard@nod.at>2017-07-05 23:18:25 +0200
commit0936d4f3d5a3d5daf453bc341f02ba4e68cfe40e (patch)
tree494fd5cbbfe856c4677abf14b717313da76c2819 /arch/um/os-Linux/execvp.c
parentum: Add os_warn() for pre-boot warning/error messages (diff)
downloadlinux-0936d4f3d5a3d5daf453bc341f02ba4e68cfe40e.tar.xz
linux-0936d4f3d5a3d5daf453bc341f02ba4e68cfe40e.zip
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>
Diffstat (limited to 'arch/um/os-Linux/execvp.c')
-rw-r--r--arch/um/os-Linux/execvp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/os-Linux/execvp.c b/arch/um/os-Linux/execvp.c
index 8fb25ca07c46..84a0777c2a45 100644
--- a/arch/um/os-Linux/execvp.c
+++ b/arch/um/os-Linux/execvp.c
@@ -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++;