aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/support/debug.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2005-11-01 18:21:35 -0500
committerNathan Scott <nathans@sgi.com>2005-11-01 18:21:35 -0500
commitda1650a5d6026df1bde414173c40bbe09305e6e6 (patch)
tree09862bd032a5bacf24ba22b1938b529ceef917d7 /fs/xfs/support/debug.h
parent88741a95af0ecf3a745051bdc1d16897d3990cec (diff)
[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>
Diffstat (limited to 'fs/xfs/support/debug.h')
-rw-r--r--fs/xfs/support/debug.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/support/debug.h b/fs/xfs/support/debug.h
index c5b9365a7e2a..4fbf5fa4d281 100644
--- a/fs/xfs/support/debug.h
+++ b/fs/xfs/support/debug.h
@@ -41,9 +41,10 @@
41#define CE_ALERT 1 /* alert */ 41#define CE_ALERT 1 /* alert */
42#define CE_PANIC 0 /* panic */ 42#define CE_PANIC 0 /* panic */
43 43
44extern void icmn_err(int, char *, va_list); 44extern void icmn_err(int, char *, va_list)
45/* PRINTFLIKE2 */ 45 __attribute__ ((format (printf, 2, 0)));
46extern void cmn_err(int, char *, ...); 46extern void cmn_err(int, char *, ...)
47 __attribute__ ((format (printf, 2, 3)));
47 48
48#ifndef STATIC 49#ifndef STATIC
49# define STATIC static 50# define STATIC static