diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2017-05-18 02:18:22 +0900 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-07-05 23:18:02 +0200 |
commit | 721ccae88d04f7e9334fde4cbb3eecfaa70a31ac (patch) | |
tree | bec5bb63020fc63017b1b2a98cc42f910a41e8a8 /arch/um/os-Linux | |
parent | d3878bb8003009d148cd787e1a2d74cff914a7b2 (diff) | |
download | linux-721ccae88d04f7e9334fde4cbb3eecfaa70a31ac.tar.gz linux-721ccae88d04f7e9334fde4cbb3eecfaa70a31ac.tar.bz2 linux-721ccae88d04f7e9334fde4cbb3eecfaa70a31ac.zip |
um: Add os_warn() for pre-boot warning/error messages
Add os_warn() for printing out pre-boot warning/error
messages in stderr. The messages via os_warn() are not
suppressed by quiet option.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r-- | arch/um/os-Linux/util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/um/os-Linux/util.c b/arch/um/os-Linux/util.c index c9bad1bca108..8cc8b2617a67 100644 --- a/arch/um/os-Linux/util.c +++ b/arch/um/os-Linux/util.c @@ -177,3 +177,12 @@ void os_info(const char *fmt, ...) vfprintf(stderr, fmt, list); va_end(list); } + +void os_warn(const char *fmt, ...) +{ + va_list list; + + va_start(list, fmt); + vfprintf(stderr, fmt, list); + va_end(list); +} |