]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: simplify dout. again.
authorSage Weil <sage@newdream.net>
Fri, 17 Jul 2009 20:47:11 +0000 (13:47 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Jul 2009 20:53:39 +0000 (13:53 -0700)
src/kernel/ceph_debug.h

index f1868ebbfb325876729ba3aac87e63e9ea634eb2..e8cbf4692522365452b34b9a8c068956485066db 100644 (file)
@@ -7,11 +7,10 @@
 
 extern const char *ceph_file_part(const char *s, int len);
 
-#define _dout(fmt, args...)                                            \
-       pr_debug(" %12.12s:%-4d : " fmt "%s",                           \
+#define dout(fmt, ...)                                                 \
+       pr_debug(" %12.12s:%-4d : " fmt,                                \
                 ceph_file_part(__FILE__, sizeof(__FILE__)),            \
-                __LINE__, args);
-#define dout(args...) _dout(args, "")
+                __LINE__, ##__VA_ARGS__);
 
 
 #endif