xfs_message.h 1.5 KB
Newer Older
D
Dave Chinner 已提交
1 2 3 4 5
#ifndef __XFS_MESSAGE_H
#define __XFS_MESSAGE_H 1

struct xfs_mount;

C
Christoph Hellwig 已提交
6
extern void xfs_printk(const char *level, const struct xfs_mount *mp,
D
Dave Chinner 已提交
7 8
                      const char *fmt, ...)
        __attribute__ ((format (printf, 3, 4)));
C
Christoph Hellwig 已提交
9
extern void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...)
D
Dave Chinner 已提交
10
        __attribute__ ((format (printf, 2, 3)));
C
Christoph Hellwig 已提交
11
extern void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...)
D
Dave Chinner 已提交
12
        __attribute__ ((format (printf, 2, 3)));
C
Christoph Hellwig 已提交
13
extern void xfs_alert_tag(const struct xfs_mount *mp, int tag,
D
Dave Chinner 已提交
14 15
			 const char *fmt, ...)
        __attribute__ ((format (printf, 3, 4)));
C
Christoph Hellwig 已提交
16
extern void xfs_crit(const struct xfs_mount *mp, const char *fmt, ...)
D
Dave Chinner 已提交
17
        __attribute__ ((format (printf, 2, 3)));
C
Christoph Hellwig 已提交
18
extern void xfs_err(const struct xfs_mount *mp, const char *fmt, ...)
D
Dave Chinner 已提交
19
        __attribute__ ((format (printf, 2, 3)));
C
Christoph Hellwig 已提交
20
extern void xfs_warn(const struct xfs_mount *mp, const char *fmt, ...)
D
Dave Chinner 已提交
21
        __attribute__ ((format (printf, 2, 3)));
C
Christoph Hellwig 已提交
22
extern void xfs_notice(const struct xfs_mount *mp, const char *fmt, ...)
D
Dave Chinner 已提交
23
        __attribute__ ((format (printf, 2, 3)));
C
Christoph Hellwig 已提交
24
extern void xfs_info(const struct xfs_mount *mp, const char *fmt, ...)
D
Dave Chinner 已提交
25 26 27
        __attribute__ ((format (printf, 2, 3)));

#ifdef DEBUG
C
Christoph Hellwig 已提交
28
extern void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
D
Dave Chinner 已提交
29 30
        __attribute__ ((format (printf, 2, 3)));
#else
C
Christoph Hellwig 已提交
31 32 33
static inline void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
{
}
D
Dave Chinner 已提交
34 35
#endif

D
Dave Chinner 已提交
36 37 38 39
extern void assfail(char *expr, char *f, int l);

extern void xfs_hex_dump(void *p, int length);

D
Dave Chinner 已提交
40
#endif	/* __XFS_MESSAGE_H */