blob: 7fb7ea007672f04cf59e544363e9a7877b0b9191 [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
Christoph Hellwig957935d2011-04-02 18:13:40 +00006extern void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +11007 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +00008extern void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +11009 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000010extern void xfs_alert_tag(const struct xfs_mount *mp, int tag,
Dave Chinner10e38392011-03-02 14:20:59 +110011 const char *fmt, ...)
12 __attribute__ ((format (printf, 3, 4)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000013extern void xfs_crit(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110014 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000015extern void xfs_err(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110016 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000017extern void xfs_warn(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110018 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000019extern void xfs_notice(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110020 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000021extern void xfs_info(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110022 __attribute__ ((format (printf, 2, 3)));
23
24#ifdef DEBUG
Christoph Hellwig957935d2011-04-02 18:13:40 +000025extern void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110026 __attribute__ ((format (printf, 2, 3)));
27#else
Joe Perchese69522a2011-05-03 20:14:44 +000028static inline void
29__attribute__ ((format (printf, 2, 3)))
30xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
Christoph Hellwig957935d2011-04-02 18:13:40 +000031{
32}
Dave Chinner10e38392011-03-02 14:20:59 +110033#endif
34
Dave Chinner91300902011-03-07 10:09:35 +110035extern void assfail(char *expr, char *f, int l);
36
37extern void xfs_hex_dump(void *p, int length);
38
Dave Chinner10e38392011-03-02 14:20:59 +110039#endif /* __XFS_MESSAGE_H */