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 <Ricardo.M.Correia@Sun.COM>
This commit is contained in:
Ricardo M. Correia 2010-01-07 16:58:29 +00:00 committed by Brian Behlendorf
parent 5562e5d105
commit b520b14305
1 changed files with 1 additions and 1 deletions

View File

@ -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);