[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] blktap: clean up some log messages



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1325575901 -3600
# Node ID 831d4ef1e575f2fe640842066effb30e78367e9f
# Parent  fe1adb19ffe1df656e2bdc0799d024b514159a7b
blktap: clean up some log messages

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r fe1adb19ffe1 -r 831d4ef1e575 drivers/xen/blktap/blktap.c
--- a/drivers/xen/blktap/blktap.c       Mon Jan 02 09:37:22 2012 +0100
+++ b/drivers/xen/blktap/blktap.c       Tue Jan 03 08:31:41 2012 +0100
@@ -692,7 +692,7 @@
        int ret;
 
        if (info == NULL) {
-               WPRINTK("blktap: mmap, retrieving idx failed\n");
+               WPRINTK("mmap: no private data?\n");
                return -ENOMEM;
        }
 
@@ -776,8 +776,7 @@
                        if (BLKTAP_MODE_VALID(arg)) {
                                info->mode = arg;
                                /* XXX: may need to flush rings here. */
-                               DPRINTK("blktap: set mode to %lx\n", 
-                                      arg);
+                               DPRINTK("set mode to %lx\n", arg);
                                return 0;
                        }
                }
@@ -800,8 +799,7 @@
        {
                if (info) {
                        info->pid = (pid_t)arg;
-                       DPRINTK("blktap: pid received %d\n", 
-                              info->pid);
+                       DPRINTK("pid received %d\n", info->pid);
                }
                return 0;
        }
@@ -942,8 +940,7 @@
        if (!pending_reqs[mmap_alloc] || !foreign_pages[mmap_alloc])
                goto out_of_memory;
 
-       DPRINTK("%s: reqs=%lu, pages=%d\n",
-               __FUNCTION__, MAX_PENDING_REQS, mmap_pages);
+       DPRINTK("reqs=%lu, pages=%d\n", MAX_PENDING_REQS, mmap_pages);
 
        for (i = 0; i < MAX_PENDING_REQS; i++) {
                list_add_tail(&pending_reqs[mmap_alloc][i].free_list, 
@@ -1434,13 +1431,13 @@
        
        /* 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();
 
        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 @@
                        }
 
                        if (unlikely(map[i+1].status != GNTST_okay)) {
-                               WPRINTK("invalid kernel buffer -- could not 
remap it\n");
+                               WPRINTK("invalid user buffer -- could not remap 
it\n");
                                ret = 1;
                                map[i+1].handle = INVALID_GRANT_HANDLE;
                        }
@@ -1743,7 +1740,7 @@
                                    "blktap0");
        } else {
                /* this is bad, but not fatal */
-               WPRINTK("blktap: sysfs xen_class not created\n");
+               WPRINTK("sysfs xen_class not created\n");
        }
 
        DPRINTK("Blktap device successfully created\n");

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.