blob: 56dc0c17f16a6578cade092c3cb553c48a729fc0 [file] [log] [blame]
Dave Chinner10e38392011-03-02 14:20:59 +11001#ifndef __XFS_MESSAGE_H
2#define __XFS_MESSAGE_H 1
3
4struct xfs_mount;
5
Joe Perchesb9075fa2011-10-31 17:11:33 -07006extern __printf(2, 3)
7void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...);
8extern __printf(2, 3)
9void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...);
10extern __printf(3, 4)
11void xfs_alert_tag(const struct xfs_mount *mp, int tag, const char *fmt, ...);
12extern __printf(2, 3)
13void xfs_crit(const struct xfs_mount *mp, const char *fmt, ...);
14extern __printf(2, 3)
15void xfs_err(const struct xfs_mount *mp, const char *fmt, ...);
16extern __printf(2, 3)
17void xfs_warn(const struct xfs_mount *mp, const char *fmt, ...);
18extern __printf(2, 3)
19void xfs_notice(const struct xfs_mount *mp, const char *fmt, ...);
20extern __printf(2, 3)
21void xfs_info(const struct xfs_mount *mp, const char *fmt, ...);
Dave Chinner10e38392011-03-02 14:20:59 +110022
23#ifdef DEBUG
Joe Perchesb9075fa2011-10-31 17:11:33 -070024extern __printf(2, 3)
25void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...);
Dave Chinner10e38392011-03-02 14:20:59 +110026#else
Joe Perchesb9075fa2011-10-31 17:11:33 -070027static inline __printf(2, 3)
28void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
Christoph Hellwig957935d2011-04-02 18:13:40 +000029{
30}
Dave Chinner10e38392011-03-02 14:20:59 +110031#endif
32
Dave Chinner91300902011-03-07 10:09:35 +110033extern void assfail(char *expr, char *f, int l);
34
35extern void xfs_hex_dump(void *p, int length);
36
Dave Chinner10e38392011-03-02 14:20:59 +110037#endif /* __XFS_MESSAGE_H */