On Mon, 4 Jan 2016 12:22:58 -0800
Petri Gynther <[email protected]> wrote:
> vmlinux: scripts/recordmcount.c: In function ‘main’:
> vmlinux: scripts/recordmcount.c:589:4: warning: format not a string
> literal and no format arguments [-Wformat-security]
> vmlinux: sprintf("%s: failed\n", file);
>
> Introduced by commit:
> commit a50bd43935586420fb75f4558369eb08566fac5e
> Author: Steven Rostedt (Red Hat) <[email protected]>
> Date: Tue Dec 15 16:06:10 2015 -0500
>
> ftrace/scripts: Have recordmcount copy the object file
>
>
> Should that sprintf() be converted to fprintf(stderr, ...) instead?
I'm currently testing this patch:
http://lkml.kernel.org/r/[email protected]
Seems my older gcc (and Fengguang Wu's gcc for his test box) doesn't
catch this.
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/