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:
parent
5562e5d105
commit
b520b14305
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue