From: "Jan Beulich" Subject: [PATCH] linux-2.6.18/blktap: clean up some log messages Date: Mon, 02 Jan 2012 08:45:01 +0000 Message-ID: <4F017C9D020000780006A006@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartD5FB969D.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartD5FB969D.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- a/drivers/xen/blktap/blktap.c +++ b/drivers/xen/blktap/blktap.c @@ -692,7 +692,7 @@ static int blktap_mmap(struct file *filp int ret; =20 if (info =3D=3D NULL) { - WPRINTK("blktap: mmap, retrieving idx failed\n"); + WPRINTK("mmap: no private data?\n"); return -ENOMEM; } =20 @@ -776,8 +776,7 @@ static int blktap_ioctl(struct inode *in if (BLKTAP_MODE_VALID(arg)) { info->mode =3D arg; /* XXX: may need to flush rings here. */ - DPRINTK("blktap: set mode to %lx\n",=20 - arg); + DPRINTK("set mode to %lx\n", arg); return 0; } } @@ -800,8 +799,7 @@ static int blktap_ioctl(struct inode *in { if (info) { info->pid =3D (pid_t)arg; - DPRINTK("blktap: pid received %d\n",=20 - info->pid); + DPRINTK("pid received %d\n", info->pid); } return 0; } @@ -942,8 +940,7 @@ static int req_increase(void) if (!pending_reqs[mmap_alloc] || !foreign_pages[mmap_alloc]) goto out_of_memory; =20 - DPRINTK("%s: reqs=3D%lu, pages=3D%d\n", - __FUNCTION__, MAX_PENDING_REQS, mmap_pages); + DPRINTK("reqs=3D%lu, pages=3D%d\n", MAX_PENDING_REQS, mmap_pages); =20 for (i =3D 0; i < MAX_PENDING_REQS; i++) { list_add_tail(&pending_reqs[mmap_alloc][i].free_list,=20 @@ -1434,13 +1431,13 @@ static void dispatch_rw_block_io(blkif_t =09 /* Make sure userspace is ready. */ if (!info->ring_ok) { - WPRINTK("blktap: ring not ready for requests!\n"); + WPRINTK("ring not ready for requests!\n"); goto fail_response; } smp_rmb(); =20 if (RING_FULL(&info->ufe_ring)) { - WPRINTK("blktap: fe_ring is full, can't add " + WPRINTK("fe_ring is full, " "IO Request will be dropped. %d %d\n", RING_SIZE(&info->ufe_ring), RING_SIZE(&blkif->blk_rings.common)); @@ -1515,7 +1512,7 @@ static void dispatch_rw_block_io(blkif_t } =20 if (unlikely(map[i+1].status !=3D GNTST_okay)) { - WPRINTK("invalid kernel buffer -- could = not remap it\n"); + WPRINTK("invalid user buffer -- could not = remap it\n"); ret =3D 1; map[i+1].handle =3D INVALID_GRANT_HANDLE; } @@ -1743,7 +1740,7 @@ static int __init blkif_init(void) "blktap0"); } else { /* this is bad, but not fatal */ - WPRINTK("blktap: sysfs xen_class not created\n"); + WPRINTK("sysfs xen_class not created\n"); } =20 DPRINTK("Blktap device successfully created\n"); --=__PartD5FB969D.0__= Content-Type: text/plain; name="xen-blktap-cleanup.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-blktap-cleanup.patch" blktap: clean up some log messages=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/drivers/xen/blktap/blktap.c=0A+++ b/drivers/= xen/blktap/blktap.c=0A@@ -692,7 +692,7 @@ static int blktap_mmap(struct = file *filp=0A int ret;=0A =0A if (info =3D=3D NULL) {=0A- = WPRINTK("blktap: mmap, retrieving idx failed\n");=0A+ WPRINTK("mm= ap: no private data?\n");=0A return -ENOMEM;=0A }=0A =0A@@ = -776,8 +776,7 @@ static int blktap_ioctl(struct inode *in=0A = if (BLKTAP_MODE_VALID(arg)) {=0A info->mode = =3D arg;=0A /* XXX: may need to flush rings = here. */=0A- DPRINTK("blktap: set mode to = %lx\n", =0A- arg);=0A+ = DPRINTK("set mode to %lx\n", arg);=0A = return 0;=0A }=0A }=0A@@ -800,8 +799,7 @@ = static int blktap_ioctl(struct inode *in=0A {=0A if (info) = {=0A info->pid =3D (pid_t)arg;=0A- = DPRINTK("blktap: pid received %d\n", =0A- = info->pid);=0A+ DPRINTK("pid received %d\n", info->pid);=0A= }=0A return 0;=0A }=0A@@ -942,8 +940,7 @@ = static int req_increase(void)=0A if (!pending_reqs[mmap_alloc] || = !foreign_pages[mmap_alloc])=0A goto out_of_memory;=0A =0A- = DPRINTK("%s: reqs=3D%lu, pages=3D%d\n",=0A- __FUNCTION__, = MAX_PENDING_REQS, mmap_pages);=0A+ DPRINTK("reqs=3D%lu, pages=3D%d\n",= MAX_PENDING_REQS, mmap_pages);=0A =0A for (i =3D 0; i < MAX_PENDING_REQS;= i++) {=0A list_add_tail(&pending_reqs[mmap_alloc][i].free_lis= t, =0A@@ -1434,13 +1431,13 @@ static void dispatch_rw_block_io(blkif_t=0A = =0A /* Make sure userspace is ready. */=0A if (!info->ring_ok) {=0A- = WPRINTK("blktap: ring not ready for requests!\n");=0A+ = WPRINTK("ring not ready for requests!\n");=0A goto fail_response;= =0A }=0A smp_rmb();=0A =0A if (RING_FULL(&info->ufe_ring)) = {=0A- WPRINTK("blktap: fe_ring is full, can't add "=0A+ = WPRINTK("fe_ring is full, "=0A "IO Request will be = dropped. %d %d\n",=0A RING_SIZE(&info->ufe_ring),=0A = RING_SIZE(&blkif->blk_rings.common));=0A@@ -1515,7 +1512,7 @@ = static void dispatch_rw_block_io(blkif_t=0A }=0A =0A = if (unlikely(map[i+1].status !=3D GNTST_okay)) {=0A- = WPRINTK("invalid kernel buffer -- could not remap = it\n");=0A+ WPRINTK("invalid user buffer -- = could not remap it\n");=0A ret =3D 1;=0A = map[i+1].handle =3D INVALID_GRANT_HANDLE;=0A = }=0A@@ -1743,7 +1740,7 @@ static int __init blkif_init(void)=0A = "blktap0");=0A } else {=0A /* this is = bad, but not fatal */=0A- WPRINTK("blktap: sysfs xen_class = not created\n");=0A+ WPRINTK("sysfs xen_class not created\n");= =0A }=0A =0A DPRINTK("Blktap device successfully created\n");=0A --=__PartD5FB969D.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartD5FB969D.0__=--