From: Sage Weil Date: Fri, 17 Jul 2009 20:47:11 +0000 (-0700) Subject: kclient: simplify dout. again. X-Git-Tag: v0.11~59 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06de1c49d709ccefa1f61a2a4103875583e89cbe;p=ceph.git kclient: simplify dout. again. --- diff --git a/src/kernel/ceph_debug.h b/src/kernel/ceph_debug.h index f1868ebbfb32..e8cbf4692522 100644 --- a/src/kernel/ceph_debug.h +++ b/src/kernel/ceph_debug.h @@ -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