[PATCH v2] xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX

2015-04-01 Thread Tao Chen
, remove it. It will format the code. These all make the readability of the code become better. Signed-off-by: Tao Chen --- v2: - Replace all DPRINTK with pr sentences, and get rid of DPRINTK macro. --- drivers/block/xen-blkback/blkback.c | 62 ++--- drivers/block

[PATCH v2] xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX

2015-04-01 Thread Tao Chen
, remove it. It will format the code. These all make the readability of the code become better. Signed-off-by: Tao Chen boby.c...@huawei.com --- v2: - Replace all DPRINTK with pr sentences, and get rid of DPRINTK macro. --- drivers/block/xen-blkback/blkback.c | 62

[PATCH] xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX

2015-03-31 Thread Tao Chen
the readability of the code become better. Signed-off-by: Tao Chen --- drivers/block/xen-blkback/blkback.c | 62 ++--- drivers/block/xen-blkback/common.h | 6 drivers/block/xen-blkback/xenbus.c | 18 ++- 3 files changed, 42 insertions(+), 44 deletions

[PATCH] xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX

2015-03-31 Thread Tao Chen
the readability of the code become better. Signed-off-by: Tao Chen boby.c...@huawei.com --- drivers/block/xen-blkback/blkback.c | 62 ++--- drivers/block/xen-blkback/common.h | 6 drivers/block/xen-blkback/xenbus.c | 18 ++- 3 files changed, 42 insertions

[PATCH v2] xen-blkback: enlarge the array size of blkback name

2015-03-26 Thread Tao Chen
The blkback name is like blkback.domid.xvd[a-z], if domid has four digits (means larger than 1000), then the backmost xvd wouldn't be fully shown. Define a BLKBACK_NAME_LEN macro to be 20, enlarge the array size of blkback name, so it will be fully shown in any case. Signed-off-by: Tao Chen

[PATCH v2] xen-blkback: enlarge the array size of blkback name

2015-03-26 Thread Tao Chen
The blkback name is like blkback.domid.xvd[a-z], if domid has four digits (means larger than 1000), then the backmost xvd wouldn't be fully shown. Define a BLKBACK_NAME_LEN macro to be 20, enlarge the array size of blkback name, so it will be fully shown in any case. Signed-off-by: Tao Chen

[PATCH] xen-blkback: enlarge the array size of blkback name

2015-03-13 Thread Tao Chen
-off-by: Tao Chen --- drivers/block/xen-blkback/xenbus.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index e3afe97..0289e21 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen

[PATCH] xen-blkback: enlarge the array size of blkback name

2015-03-13 Thread Tao Chen
-off-by: Tao Chen boby.c...@huawei.com --- drivers/block/xen-blkback/xenbus.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index e3afe97..0289e21 100644 --- a/drivers/block/xen-blkback/xenbus.c

[PATCH v4] xen-scsiback: define a pr_fmt macro with xen-pvscsi

2015-03-10 Thread Tao Chen
Add the {xen-pvscsi: } prefix in pr_fmt and remove DPRINTK, then replace all DPRINTK with pr_debug. Also fixed up some comments just as eliminate redundant whitespace and format the code. These will make the code easier to read. Signed-off-by: Tao Chen --- drivers/xen/xen-scsiback.c | 75

[PATCH v4] xen-scsiback: define a pr_fmt macro with xen-pvscsi

2015-03-10 Thread Tao Chen
Add the {xen-pvscsi: } prefix in pr_fmt and remove DPRINTK, then replace all DPRINTK with pr_debug. Also fixed up some comments just as eliminate redundant whitespace and format the code. These will make the code easier to read. Signed-off-by: Tao Chen boby.c...@huawei.com --- drivers/xen/xen

[PATCH v3] xen-scsiback: define a pr_fmt macro with xen-pvscsi

2015-03-06 Thread Tao Chen
Add the {xen-pvscsi: } prefix in pr_fmt and remove DPRINTK, then replace all DPRINTK with pr_debug. Also fixed up some comments just as eliminate redundant whitespace and format the code. These will make the code easier to read. Signed-off-by: Tao Chen --- drivers/xen/xen-scsiback.c | 72

[PATCH v3] xen-scsiback: define a pr_fmt macro with xen-pvscsi

2015-03-06 Thread Tao Chen
Add the {xen-pvscsi: } prefix in pr_fmt and remove DPRINTK, then replace all DPRINTK with pr_debug. Also fixed up some comments just as eliminate redundant whitespace and format the code. These will make the code easier to read. Signed-off-by: Tao Chen boby.c...@huawei.com --- drivers/xen/xen

[PATCH v2] xen-scsiback: use DRV_PFX in the pr macros and DPRINTK

2015-03-04 Thread Tao Chen
Defined the string of {xen-pvscsi: } as DRV_PFX, then use it in the pr sentences and DPRINTK. Also fixed up some comments just as eliminate redundant white spaces and format the code. These will make the code easier to read. Signed-off-by: Tao Chen --- drivers/xen/xen-scsiback.c | 70

[PATCH v2] xen-scsiback: use DRV_PFX in the pr macros and DPRINTK

2015-03-04 Thread Tao Chen
Defined the string of {xen-pvscsi: } as DRV_PFX, then use it in the pr sentences and DPRINTK. Also fixed up some comments just as eliminate redundant white spaces and format the code. These will make the code easier to read. Signed-off-by: Tao Chen boby.c...@huawei.com --- drivers/xen/xen

[PATCH] xen-scsiback: use DRV_PFX in the pr macros

2015-03-03 Thread Tao Chen
Replace the string of {xen-pvscsi:} in the pr sentences with DRV_PFX, it makes the code easier to read. Signed-off-by: Tao Chen --- drivers/xen/xen-scsiback.c | 67 +++--- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/drivers/xen/xen

[PATCH] xen-scsiback: use DRV_PFX in the pr macros

2015-03-03 Thread Tao Chen
Replace the string of {xen-pvscsi:} in the pr sentences with DRV_PFX, it makes the code easier to read. Signed-off-by: Tao Chen boby.c...@huawei.com --- drivers/xen/xen-scsiback.c | 67 +++--- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git