diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2017-05-18 02:19:31 +0900 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-07-05 23:18:25 +0200 |
commit | 0936d4f3d5a3d5daf453bc341f02ba4e68cfe40e (patch) | |
tree | 494fd5cbbfe856c4677abf14b717313da76c2819 /arch/um/kernel/umid.c | |
parent | 721ccae88d04f7e9334fde4cbb3eecfaa70a31ac (diff) | |
download | linux-0936d4f3d5a3d5daf453bc341f02ba4e68cfe40e.tar.gz linux-0936d4f3d5a3d5daf453bc341f02ba4e68cfe40e.tar.bz2 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/kernel/umid.c')
-rw-r--r-- | arch/um/kernel/umid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/umid.c b/arch/um/kernel/umid.c index f6cc3bd61781..10bf4aca529f 100644 --- a/arch/um/kernel/umid.c +++ b/arch/um/kernel/umid.c @@ -16,14 +16,14 @@ static int __init set_umid_arg(char *name, int *add) int err; if (umid_inited) { - printf("umid already set\n"); + os_warn("umid already set\n"); return 0; } *add = 0; err = set_umid(name); if (err == -EEXIST) - printf("umid '%s' already in use\n", name); + os_warn("umid '%s' already in use\n", name); else if (!err) umid_inited = 1; |