Nicolas Iooss b4176b7c13 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 <nicolas.iooss_linux@m4x.org>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-06-25 17:00:43 -07:00
..
2015-05-10 22:18:28 -04:00
2015-06-25 17:00:42 -07:00
2015-05-10 22:18:21 -04:00
2015-05-11 08:13:13 -04:00
2015-06-25 17:00:40 -07:00
2015-06-23 17:38:39 -07:00
2015-05-10 22:18:26 -04:00
2015-04-21 16:16:02 -04:00
2015-06-25 17:00:42 -07:00
2015-06-25 17:00:43 -07:00
2015-04-11 22:29:40 -04:00
2015-05-10 22:18:26 -04:00
2015-05-21 15:19:15 +02:00
2015-05-10 22:18:25 -04:00
2015-04-17 09:04:07 -04:00
2015-05-11 08:13:13 -04:00
2015-04-17 09:04:12 -04:00
2015-05-11 08:13:14 -04:00
2015-05-11 08:13:14 -04:00