summaryrefslogtreecommitdiff
path: root/arch/um/os-Linux/start_up.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2017-05-18 02:19:31 +0900
committerRichard Weinberger <richard@nod.at>2017-07-05 23:18:25 +0200
commit0936d4f3d5a3d5daf453bc341f02ba4e68cfe40e (patch)
tree494fd5cbbfe856c4677abf14b717313da76c2819 /arch/um/os-Linux/start_up.c
parent721ccae88d04f7e9334fde4cbb3eecfaa70a31ac (diff)
downloadlwn-0936d4f3d5a3d5daf453bc341f02ba4e68cfe40e.tar.gz
lwn-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/start_up.c')
-rw-r--r--arch/um/os-Linux/start_up.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c
index f16e001998e5..b1b6b75c5b17 100644
--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
@@ -351,7 +351,7 @@ int __init parse_iomem(char *str, int *add)
driver = str;
file = strchr(str,',');
if (file == NULL) {
- fprintf(stderr, "parse_iomem : failed to parse iomem\n");
+ os_warn("parse_iomem : failed to parse iomem\n");
goto out;
}
*file = '\0';