mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-05-23 15:04:59 +03:00
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];
|
char msg[MAXMSGLEN];
|
||||||
|
|
||||||
vsnprintf(msg, MAXMSGLEN - 1, fmt, ap);
|
vsnprintf(msg, MAXMSGLEN - 1, fmt, ap);
|
||||||
panic(msg);
|
panic("%s", msg);
|
||||||
} /* vpanic() */
|
} /* vpanic() */
|
||||||
EXPORT_SYMBOL(vpanic);
|
EXPORT_SYMBOL(vpanic);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user