diff options
Diffstat (limited to 'fs/xfs/support/debug.h')
| -rw-r--r-- | fs/xfs/support/debug.h | 23 | 
1 files changed, 15 insertions, 8 deletions
diff --git a/fs/xfs/support/debug.h b/fs/xfs/support/debug.h index d2d20462fd4..05699f67d47 100644 --- a/fs/xfs/support/debug.h +++ b/fs/xfs/support/debug.h @@ -20,15 +20,22 @@  #include <stdarg.h> -#define CE_DEBUG        7               /* debug        */ -#define CE_CONT         6               /* continuation */ -#define CE_NOTE         5               /* notice       */ -#define CE_WARN         4               /* warning      */ -#define CE_ALERT        1               /* alert        */ -#define CE_PANIC        0               /* panic        */ +struct xfs_mount; + +#define CE_DEBUG        KERN_DEBUG +#define CE_CONT         KERN_INFO +#define CE_NOTE         KERN_NOTICE +#define CE_WARN         KERN_WARNING +#define CE_ALERT        KERN_ALERT +#define CE_PANIC        KERN_EMERG + +void cmn_err(const char *lvl, const char *fmt, ...) +		__attribute__ ((format (printf, 2, 3))); +void xfs_fs_cmn_err( const char *lvl, struct xfs_mount *mp, +		const char *fmt, ...) __attribute__ ((format (printf, 3, 4))); +void xfs_cmn_err( int panic_tag, const char *lvl, struct xfs_mount *mp, +		const char *fmt, ...) __attribute__ ((format (printf, 4, 5))); -extern void cmn_err(int, char *, ...) -	__attribute__ ((format (printf, 2, 3)));  extern void assfail(char *expr, char *f, int l);  #define ASSERT_ALWAYS(expr)	\  |