reiserfs: fix problems with chowning setuid file w/ xattrs
[linux-2.6-microblaze.git] / fs / hfsplus / hfsplus_fs.h
index 05b11f3..60b0a33 100644 (file)
 #ifndef _LINUX_HFSPLUS_FS_H
 #define _LINUX_HFSPLUS_FS_H
 
+#ifdef pr_fmt
+#undef pr_fmt
+#endif
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/fs.h>
 #include <linux/mutex.h>
 #include <linux/buffer_head.h>
 #endif
 #define DBG_MASK       (0)
 
-#define dprint(flg, fmt, args...) \
-       if (flg & DBG_MASK) \
-               printk(fmt , ## args)
+#define hfs_dbg(flg, fmt, ...)                                 \
+do {                                                           \
+       if (DBG_##flg & DBG_MASK)                               \
+               printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__);  \
+} while (0)
+
+#define hfs_dbg_cont(flg, fmt, ...)                            \
+do {                                                           \
+       if (DBG_##flg & DBG_MASK)                               \
+               pr_cont(fmt, ##__VA_ARGS__);                    \
+} while (0)
 
 /* Runtime config options */
 #define HFSPLUS_DEF_CR_TYPE    0x3F3F3F3F  /* '????' */