aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_message.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-03 20:14:44 +0000
committerAlex Elder <aelder@sgi.com>2011-05-19 11:38:09 -0500
commite69522a8cc51fbefbfe9d178ad177f7b6ca00ebd (patch)
tree153a8fd226f368164d6b1f21e31e590396c37c9f /fs/xfs/linux-2.6/xfs_message.h
parente4d3c4a43b595d5124ae824d300626e6489ae857 (diff)
downloadkernel_samsung_smdk4412-e69522a8cc51fbefbfe9d178ad177f7b6ca00ebd.zip
kernel_samsung_smdk4412-e69522a8cc51fbefbfe9d178ad177f7b6ca00ebd.tar.gz
kernel_samsung_smdk4412-e69522a8cc51fbefbfe9d178ad177f7b6ca00ebd.tar.bz2
xfs: kill off xfs_printk()
xfs_alert_tag() can be defined using xfs_alert(), and thereby avoid using xfs_printk() altogether. This is the only remaining use of xfs_printk(), so changing it this way means xfs_printk() can simply be eliminated.can simply be eliminated.can simply be eliminated.can simply be eliminated.can simply be eliminated.can simply be eliminated.can simply be eliminated.can simply be eliminated.can simply be eliminated. Also add format checking to the non-debug inline function xfs_debug. Miscellaneous function prototype argument alignment. (Updated to delete the definition of xfs_printk(), which is no longer used or needed.) Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_message.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_message.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_message.h b/fs/xfs/linux-2.6/xfs_message.h
index f1b3fc1..7fb7ea0 100644
--- a/fs/xfs/linux-2.6/xfs_message.h
+++ b/fs/xfs/linux-2.6/xfs_message.h
@@ -3,9 +3,6 @@
struct xfs_mount;
-extern void xfs_printk(const char *level, const struct xfs_mount *mp,
- const char *fmt, ...)
- __attribute__ ((format (printf, 3, 4)));
extern void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...)
__attribute__ ((format (printf, 2, 3)));
extern void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...)
@@ -28,7 +25,9 @@ extern void xfs_info(const struct xfs_mount *mp, const char *fmt, ...)
extern void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
__attribute__ ((format (printf, 2, 3)));
#else
-static inline void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
+static inline void
+__attribute__ ((format (printf, 2, 3)))
+xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
{
}
#endif