[XFS] Add format checking to cmn_err and icmn_err
SGI-PV: 942243 SGI-Modid: xfs-linux:xfs-kern:198658a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
This commit is contained in:

committed by
Nathan Scott

parent
88741a95af
commit
da1650a5d6
@@ -41,9 +41,10 @@
|
||||
#define CE_ALERT 1 /* alert */
|
||||
#define CE_PANIC 0 /* panic */
|
||||
|
||||
extern void icmn_err(int, char *, va_list);
|
||||
/* PRINTFLIKE2 */
|
||||
extern void cmn_err(int, char *, ...);
|
||||
extern void icmn_err(int, char *, va_list)
|
||||
__attribute__ ((format (printf, 2, 0)));
|
||||
extern void cmn_err(int, char *, ...)
|
||||
__attribute__ ((format (printf, 2, 3)));
|
||||
|
||||
#ifndef STATIC
|
||||
# define STATIC static
|
||||
|
Reference in New Issue
Block a user