aboutsummaryrefslogtreecommitdiffstats
path: root/module/spl/spl-err.c
diff options
context:
space:
mode:
authorRicardo M. Correia <[email protected]>2010-01-07 16:58:29 +0000
committerBrian Behlendorf <[email protected]>2010-01-08 09:37:54 -0800
commitb520b14305975bc8b18d3b8e3844ba6c4e119a0d (patch)
treed38643a554ad26541e900d9517891e105f1f1e39 /module/spl/spl-err.c
parent5562e5d105aa5120a828b38c5d1a635d852bcdde (diff)
sun-fix-panic-str
Fix panic() string, which was being used as a format string, instead of an already-formatted string. Signed-off-by: Ricardo M. Correia <[email protected]>
Diffstat (limited to 'module/spl/spl-err.c')
-rw-r--r--module/spl/spl-err.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/spl/spl-err.c b/module/spl/spl-err.c
index 3ee284868..f87e2a394 100644
--- a/module/spl/spl-err.c
+++ b/module/spl/spl-err.c
@@ -44,7 +44,7 @@ vpanic(const char *fmt, va_list ap)
char msg[MAXMSGLEN];
vsnprintf(msg, MAXMSGLEN - 1, fmt, ap);
- panic(msg);
+ panic("%s", msg);
} /* vpanic() */
EXPORT_SYMBOL(vpanic);