xfs_message.h 1.1 KB

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