svn commit: r242823 - head/sys/dev/aac
Sergey Kandaurov
pluknet at freebsd.org
Fri Nov 9 14:40:59 UTC 2012
On 9 November 2012 17:58, Roman Divacky <rdivacky at freebsd.org> wrote:
> Author: rdivacky
> Date: Fri Nov 9 13:58:52 2012
> New Revision: 242823
> URL: http://svnweb.freebsd.org/changeset/base/242823
>
> Log:
> Give panic format string to pacify clang warning.
>
> Modified:
> head/sys/dev/aac/aac_debug.c
>
> Modified: head/sys/dev/aac/aac_debug.c
> ==============================================================================
> --- head/sys/dev/aac/aac_debug.c Fri Nov 9 07:29:11 2012 (r242822)
> +++ head/sys/dev/aac/aac_debug.c Fri Nov 9 13:58:52 2012 (r242823)
> @@ -160,7 +160,7 @@ void
> aac_panic(struct aac_softc *sc, char *reason)
> {
> aac_print_queues(sc);
> - panic(reason);
> + panic("%s", reason);
> }
>
> /*
Thanks. There are presumably more warnings:
/sys/dev/twe/twe.c: panic(reason);
/sys/dev/mly/mly.c: panic(reason);
Sorry, cannot test right now.
--
wbr,
pluknet
More information about the svn-src-all
mailing list