summaryrefslogtreecommitdiff
path: root/kernel/trace/rv/reactor_panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/rv/reactor_panic.c')
-rw-r--r--kernel/trace/rv/reactor_panic.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/trace/rv/reactor_panic.c b/kernel/trace/rv/reactor_panic.c
index 0186ff4cbd0b..74c6bcc2c749 100644
--- a/kernel/trace/rv/reactor_panic.c
+++ b/kernel/trace/rv/reactor_panic.c
@@ -13,9 +13,13 @@
#include <linux/init.h>
#include <linux/rv.h>
-static void rv_panic_reaction(char *msg)
+__printf(1, 2) static void rv_panic_reaction(const char *msg, ...)
{
- panic(msg);
+ va_list args;
+
+ va_start(args, msg);
+ vpanic(msg, args);
+ va_end(args);
}
static struct rv_reactor rv_panic = {