xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX
authorTao Chen <boby.chen@huawei.com>
Wed, 1 Apr 2015 15:04:22 +0000 (15:04 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 7 Apr 2015 14:32:43 +0000 (10:32 -0400)
commit77387b82d1b2bada25a7b566ab7716408fedc5e9
tree0320d478ee2df60742976c93c7bba232e9244261
parent1375590d3e18b4d87d2f768178e93a0c8644a7dc
xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX

Define pr_fmt macro with {xen-blkback: } prefix, then remove all use
of DRV_PFX in the pr sentences. Replace all DPRINTK with pr sentences,
and get rid of DPRINTK macro. It will simplify the code.

And if the pr sentences miss a \n, add it in the end. If the DPRINTK
sentences have redundant \n, remove it. It will format the code.

These all make the readability of the code become better.

Signed-off-by: Tao Chen <boby.chen@huawei.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c