diff options
| author | Nicolas Iooss <[email protected]> | 2015-06-25 15:03:53 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-06-25 17:00:43 -0700 |
| commit | b4176b7c135ed28e78752552358919e5b14ad2bf (patch) | |
| tree | 09f9c9431b7fd0dee8fca86f75cb211132ae648c /scripts/gdb/linux/utils.py | |
| parent | 5202efe544c279be152f44f2821010ff7b2d7e5b (diff) | |
coredump: add __printf attribute to cn_*printf functions
This allows detecting improper format string at build time, like:
fs/coredump.c:225:5: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
err = cn_printf(cn, "%ld", cprm->siginfo->si_signo);
^
As si_signo is always an int, the format should be %d here.
Signed-off-by: Nicolas Iooss <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions