mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 13:22:55 +00:00
b9075fa968
Standardize the style for compiler based printf format verification. Standardized the location of __printf too. Done via script and a little typing. $ grep -rPl --include=*.[ch] -w "__attribute__" * | \ grep -vP "^(tools|scripts|include/linux/compiler-gcc.h)" | \ xargs perl -n -i -e 'local $/; while (<>) { s/\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf\s*,\s*(.+)\s*,\s*(.+)\s*\)\s*\)\s*\)/__printf($1, $2)/g ; print; }' [akpm@linux-foundation.org: revert arch bits] Signed-off-by: Joe Perches <joe@perches.com> Cc: "Kirill A. Shutemov" <kirill@shutemov.name> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
#ifndef __XFS_MESSAGE_H
|
|
#define __XFS_MESSAGE_H 1
|
|
|
|
struct xfs_mount;
|
|
|
|
extern __printf(2, 3)
|
|
void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...);
|
|
extern __printf(2, 3)
|
|
void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...);
|
|
extern __printf(3, 4)
|
|
void xfs_alert_tag(const struct xfs_mount *mp, int tag, const char *fmt, ...);
|
|
extern __printf(2, 3)
|
|
void xfs_crit(const struct xfs_mount *mp, const char *fmt, ...);
|
|
extern __printf(2, 3)
|
|
void xfs_err(const struct xfs_mount *mp, const char *fmt, ...);
|
|
extern __printf(2, 3)
|
|
void xfs_warn(const struct xfs_mount *mp, const char *fmt, ...);
|
|
extern __printf(2, 3)
|
|
void xfs_notice(const struct xfs_mount *mp, const char *fmt, ...);
|
|
extern __printf(2, 3)
|
|
void xfs_info(const struct xfs_mount *mp, const char *fmt, ...);
|
|
|
|
#ifdef DEBUG
|
|
extern __printf(2, 3)
|
|
void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...);
|
|
#else
|
|
static inline __printf(2, 3)
|
|
void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
extern void assfail(char *expr, char *f, int l);
|
|
|
|
extern void xfs_hex_dump(void *p, int length);
|
|
|
|
#endif /* __XFS_MESSAGE_H */
|