From: Ricardo M. Correia Date: Thu, 7 Jan 2010 16:58:29 +0000 (+0000) Subject: sun-fix-panic-str X-Git-Tag: spl-0.4.8~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b520b14305975bc8b18d3b8e3844ba6c4e119a0d;p=spl 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 --- diff --git a/module/spl/spl-err.c b/module/spl/spl-err.c index 3ee2848..f87e2a3 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);