xfs_message.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __XFS_MESSAGE_H
  2. #define __XFS_MESSAGE_H 1
  3. struct xfs_mount;
  4. extern void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...)
  5. __attribute__ ((format (printf, 2, 3)));
  6. extern void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...)
  7. __attribute__ ((format (printf, 2, 3)));
  8. extern void xfs_alert_tag(const struct xfs_mount *mp, int tag,
  9. const char *fmt, ...)
  10. __attribute__ ((format (printf, 3, 4)));
  11. extern void xfs_crit(const struct xfs_mount *mp, const char *fmt, ...)
  12. __attribute__ ((format (printf, 2, 3)));
  13. extern void xfs_err(const struct xfs_mount *mp, const char *fmt, ...)
  14. __attribute__ ((format (printf, 2, 3)));
  15. extern void xfs_warn(const struct xfs_mount *mp, const char *fmt, ...)
  16. __attribute__ ((format (printf, 2, 3)));
  17. extern void xfs_notice(const struct xfs_mount *mp, const char *fmt, ...)
  18. __attribute__ ((format (printf, 2, 3)));
  19. extern void xfs_info(const struct xfs_mount *mp, const char *fmt, ...)
  20. __attribute__ ((format (printf, 2, 3)));
  21. #ifdef DEBUG
  22. extern void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
  23. __attribute__ ((format (printf, 2, 3)));
  24. #else
  25. static inline void
  26. __attribute__ ((format (printf, 2, 3)))
  27. xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
  28. {
  29. }
  30. #endif
  31. extern void assfail(char *expr, char *f, int l);
  32. extern void xfs_hex_dump(void *p, int length);
  33. #endif /* __XFS_MESSAGE_H */