From b520b14305975bc8b18d3b8e3844ba6c4e119a0d Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Thu, 7 Jan 2010 16:58:29 +0000 Subject: 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 --- module/spl/spl-err.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module') 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); -- cgit v1.2.3