aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback/xenbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/xen-blkback/xenbus.c')
-rw-r--r--drivers/block/xen-blkback/xenbus.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c
index 0cda406b4edb..c86519c477f3 100644
--- a/drivers/block/xen-blkback/xenbus.c
+++ b/drivers/block/xen-blkback/xenbus.c
@@ -23,7 +23,7 @@
23 23
24#undef DPRINTK 24#undef DPRINTK
25#define DPRINTK(fmt, args...) \ 25#define DPRINTK(fmt, args...) \
26 pr_debug("blkback/xenbus (%s:%d) " fmt ".\n", \ 26 pr_debug("xen-blkback: (%s:%d) " fmt ".\n", \
27 __func__, __LINE__, ##args) 27 __func__, __LINE__, ##args)
28 28
29struct backend_info { 29struct backend_info {
@@ -136,7 +136,7 @@ static int map_frontend_page(struct blkif_st *blkif, unsigned long shared_page)
136 BUG(); 136 BUG();
137 137
138 if (op.status) { 138 if (op.status) {
139 DPRINTK(" Grant table operation failure !\n"); 139 DPRINTK("Grant table operation failure !\n");
140 return op.status; 140 return op.status;
141 } 141 }
142 142
@@ -509,10 +509,8 @@ static void backend_changed(struct xenbus_watch *watch,
509 509
510 if ((be->major || be->minor) && 510 if ((be->major || be->minor) &&
511 ((be->major != major) || (be->minor != minor))) { 511 ((be->major != major) || (be->minor != minor))) {
512 printk(KERN_WARNING 512 pr_warn("xen-blkback: changing physical device (from %x:%x to %x:%x) not supported.\n",
513 "blkback: changing physical device (from %x:%x to " 513 be->major, be->minor, major, minor);
514 "%x:%x) not supported.\n", be->major, be->minor,
515 major, minor);
516 return; 514 return;
517 } 515 }
518 516
@@ -578,8 +576,8 @@ static void frontend_changed(struct xenbus_device *dev,
578 switch (frontend_state) { 576 switch (frontend_state) {
579 case XenbusStateInitialising: 577 case XenbusStateInitialising:
580 if (dev->state == XenbusStateClosed) { 578 if (dev->state == XenbusStateClosed) {
581 printk(KERN_INFO "%s: %s: prepare for reconnect\n", 579 pr_info("xen-blkback: %s: prepare for reconnect\n",
582 __func__, dev->nodename); 580 dev->nodename);
583 xenbus_switch_state(dev, XenbusStateInitWait); 581 xenbus_switch_state(dev, XenbusStateInitWait);
584 } 582 }
585 break; 583 break;
@@ -733,9 +731,8 @@ static int connect_ring(struct backend_info *be)
733 xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol); 731 xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol);
734 return -1; 732 return -1;
735 } 733 }
736 printk(KERN_INFO 734 pr_info("xen-blkback: ring-ref %ld, event-channel %d, protocol %d (%s)\n",
737 "blkback: ring-ref %ld, event-channel %d, protocol %d (%s)\n", 735 ring_ref, evtchn, be->blkif->blk_protocol, protocol);
738 ring_ref, evtchn, be->blkif->blk_protocol, protocol);
739 736
740 /* Map the shared frame, irq etc. */ 737 /* Map the shared frame, irq etc. */
741 err = xen_blkif_map(be->blkif, ring_ref, evtchn); 738 err = xen_blkif_map(be->blkif, ring_ref, evtchn);