Format specifier issue when building kernel

William Roberts bill.c.roberts at gmail.com
Mon Oct 28 23:31:30 UTC 2013


On Mon, Oct 28, 2013 at 4:30 PM, William Roberts
<bill.c.roberts at gmail.com>wrote:

> I've been working off of Richard Guy Brigs git repo on branch
> audit-for-next prepping my patch and I noticed a build warning:
>
> kernel/audit.c:832:8: warning: format ‘%A’ expects argument of type
> ‘double’, but argument 3 has type ‘char *’ [-Wformat]
>
> Looking at the code, it looks wrong:
>
>                                 audit_log_format(ab,
                                                 "
msg='%.AUDIT_MESSAGE_TEXT_MAXs'",
                                                 (char *)data);

The issue appears on the % specifier in there, it picks it up as %.A, which
is of type double. Is this what was intended?


<snip>
>

-- 
Respectfully,

William C Roberts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20131028/5ef477f9/attachment.htm>


More information about the Linux-audit mailing list