From ced24e96c7119fee13e8bb495352882b07db4363 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Wed, 14 Feb 2007 16:05:28 +0000 Subject: [PATCH] linux: quieten some driver printk logging. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c | 5 +++-- linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c | 5 +++-- linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c | 2 +- linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c | 6 +++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c index 0d9b5e34b4..3c89453030 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c @@ -344,7 +344,7 @@ static void frontend_changed(struct xenbus_device *dev, switch (frontend_state) { case XenbusStateInitialising: if (dev->state == XenbusStateClosed) { - printk("%s: %s: prepare for reconnect\n", + printk(KERN_INFO "%s: %s: prepare for reconnect\n", __FUNCTION__, dev->nodename); xenbus_switch_state(dev, XenbusStateInitWait); } @@ -488,7 +488,8 @@ static int connect_ring(struct backend_info *be) xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol); return -1; } - printk("blkback: ring-ref %ld, event-channel %d, protocol %d (%s)\n", + printk(KERN_INFO + "blkback: ring-ref %ld, event-channel %d, protocol %d (%s)\n", ring_ref, evtchn, be->blkif->blk_protocol, protocol); /* Map the shared frame, irq etc. */ diff --git a/linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c index 58a79e7e4d..3f3344b3bd 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c @@ -272,7 +272,7 @@ static void tap_frontend_changed(struct xenbus_device *dev, switch (frontend_state) { case XenbusStateInitialising: if (dev->state == XenbusStateClosed) { - printk("%s: %s: prepare for reconnect\n", + printk(KERN_INFO "%s: %s: prepare for reconnect\n", __FUNCTION__, dev->nodename); xenbus_switch_state(dev, XenbusStateInitWait); } @@ -369,7 +369,8 @@ static int connect_ring(struct backend_info *be) xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol); return -1; } - printk("blktap: ring-ref %ld, event-channel %d, protocol %d (%s)\n", + printk(KERN_INFO + "blktap: ring-ref %ld, event-channel %d, protocol %d (%s)\n", ring_ref, evtchn, be->blkif->blk_protocol, protocol); /* Map the shared frame, irq etc. */ diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c index 7d301965f4..12a3dc26f8 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c @@ -217,7 +217,7 @@ static void frontend_changed(struct xenbus_device *dev, switch (frontend_state) { case XenbusStateInitialising: if (dev->state == XenbusStateClosed) { - printk("%s: %s: prepare for reconnect\n", + printk(KERN_INFO "%s: %s: prepare for reconnect\n", __FUNCTION__, dev->nodename); if (be->netif) { netif_disconnect(be->netif); diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index bd86948fed..80d1a3e995 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -1505,7 +1505,7 @@ static void netif_release_rx_bufs(struct netfront_info *np) int id, ref; if (np->copying_receiver) { - printk("%s: fix me for copying receiver.\n", __FUNCTION__); + WPRINTK("%s: fix me for copying receiver.\n", __FUNCTION__); return; } @@ -1555,8 +1555,8 @@ static void netif_release_rx_bufs(struct netfront_info *np) xfer++; } - printk("%s: %d xfer, %d noxfer, %d unused\n", - __FUNCTION__, xfer, noxfer, unused); + IPRINTK("%s: %d xfer, %d noxfer, %d unused\n", + __FUNCTION__, xfer, noxfer, unused); if (xfer) { /* Some pages are no longer absent... */ -- 2.30.2