blob: f1b3fc1b6c4ec9d4ecb09b075d6b336ce430ec40 [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_printk(const char *level, const struct xfs_mount *mp,
Dave Chinner10e38392011-03-02 14:20:59 +11007 const char *fmt, ...)
8 __attribute__ ((format (printf, 3, 4)));
Christoph Hellwig957935d2011-04-02 18:13:40 +00009extern void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110010 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000011extern void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110012 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000013extern void xfs_alert_tag(const struct xfs_mount *mp, int tag,
Dave Chinner10e38392011-03-02 14:20:59 +110014 const char *fmt, ...)
15 __attribute__ ((format (printf, 3, 4)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000016extern void xfs_crit(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110017 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000018extern void xfs_err(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110019 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000020extern void xfs_warn(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110021 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000022extern void xfs_notice(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110023 __attribute__ ((format (printf, 2, 3)));
Christoph Hellwig957935d2011-04-02 18:13:40 +000024extern void xfs_info(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110025 __attribute__ ((format (printf, 2, 3)));
26
27#ifdef DEBUG
Christoph Hellwig957935d2011-04-02 18:13:40 +000028extern void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
Dave Chinner10e38392011-03-02 14:20:59 +110029 __attribute__ ((format (printf, 2, 3)));
30#else
Christoph Hellwig957935d2011-04-02 18:13:40 +000031static inline void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
32{
33}
Dave Chinner10e38392011-03-02 14:20:59 +110034#endif
35
Dave Chinner91300902011-03-07 10:09:35 +110036extern void assfail(char *expr, char *f, int l);
37
38extern void xfs_hex_dump(void *p, int length);
39
Dave Chinner10e38392011-03-02 14:20:59 +110040#endif /* __XFS_MESSAGE_H */