Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2012 17:40:57 +0300
From:      Sergey Kandaurov <pluknet@freebsd.org>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r242823 - head/sys/dev/aac
Message-ID:  <CAE-mSOLDg0%2B__dcgj3odSaWLLPHVWiJDTM38eOxZ0FonOmqeYw@mail.gmail.com>
In-Reply-To: <201211091358.qA9Dwqpa084463@svn.freebsd.org>
References:  <201211091358.qA9Dwqpa084463@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9 November 2012 17:58, Roman Divacky <rdivacky@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSOLDg0%2B__dcgj3odSaWLLPHVWiJDTM38eOxZ0FonOmqeYw>