[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX
On Tue, 2015-03-31 at 16:57 +0200, Roger Pau Monné wrote: > El 31/03/15 a les 23.14, Tao Chen ha escrit: > > Define pr_fmt macro with {xen-blkback: } prefix, then remove all use > > of DRV_PFX in the pr and DPRINTK sentences. It will simplify the code. [] > > diff --git a/drivers/block/xen-blkback/xenbus.c > > b/drivers/block/xen-blkback/xenbus.c [] > > @@ -14,6 +14,11 @@ > > > > */ > > > > +#define pr_fmt(fmt) "xen-blkback: " fmt > > +#define DPRINTK(fmt, args...) \ > > + pr_debug("(%s:%d) " fmt ".\n", \ > > + __func__, __LINE__, ##args) As dynamic debug can emit __func__ and __LINE__ I suggest converting DPRINTK to pr_debug. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |