[apparmor] [PATCH 2/3] parser: Fix -Wformat-extra-args warning

Steve Beattie steve at nxnw.org
Sat Feb 28 00:45:31 UTC 2015


On Fri, Feb 27, 2015 at 05:37:11PM -0600, Tyler Hicks wrote:
> Only present when building with DEBUG=1.
> 
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>

Nice catch, Acked-by: Steve Beattie <steve at nxnw.org>.

FYI, cppcheck can catch issues like this:

  Checking parser_misc.c: DEBUG...
  [parser_misc.c:540]: (warning) printf format string requires 1 parameter but 2 are given.

-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150227/27111135/attachment.pgp>


More information about the AppArmor mailing list