Re: [PATCH 03/21] ceph: client types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-09-22 at 10:38 -0700, Sage Weil wrote:
> diff --git a/fs/ceph/ceph_debug.h b/fs/ceph/ceph_debug.h
> new file mode 100644
> index 0000000..be9b8bc
> --- /dev/null
> +++ b/fs/ceph/ceph_debug.h
> +# if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG)
> +extern const char *ceph_file_part(const char *s, int len);
> +#  define dout(fmt, ...)						\
> +	pr_debug(" %12.12s:%-4d : " fmt,				\
> +		 ceph_file_part(__FILE__, sizeof(__FILE__)),		\
> +		 __LINE__, ##__VA_ARGS__)

perhaps:

#define pr_fmt(fmt) "%s:%d" fmt, __FILE__, __LINE__


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux