WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] linux/blktap: make debugging messages a little more

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/blktap: make debugging messages a little more meaningful
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Wed, 21 Apr 2010 14:54:05 +0100
Delivery-date: Wed, 21 Apr 2010 06:56:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- sle11sp1-2010-04-12.orig/drivers/xen/blktap/xenbus.c        2010-04-21 
13:43:49.000000000 +0200
+++ sle11sp1-2010-04-12/drivers/xen/blktap/xenbus.c     2010-04-21 
13:55:58.000000000 +0200
@@ -236,8 +236,11 @@ static void tap_update_blkif_status(blki
                err = PTR_ERR(blkif->xenblkd);
                blkif->xenblkd = NULL;
                xenbus_dev_fatal(blkif->be->dev, err, "start xenblkd");
-               WPRINTK("Error starting thread\n");
-       }
+               WPRINTK("Error starting thread %s\n", name);
+       } else
+               DPRINTK("Thread started for domid %d, connected disk %d\n",
+                       blkif->domid, blkif->dev_num);
+
 }
 
 /**
@@ -327,8 +330,6 @@ static void tap_backend_changed(struct x
        /* Associate tap dev with domid*/
        be->blkif->dev_num = dom_to_devid(be->blkif->domid, be->xenbus_id, 
                                          be->blkif);
-       DPRINTK("Thread started for domid [%d], connecting disk\n", 
-               be->blkif->dev_num);
 
        tap_update_blkif_status(be->blkif);
 }
@@ -342,7 +343,7 @@ static void tap_frontend_changed(struct 
        struct backend_info *be = dev->dev.driver_data;
        int err;
 
-       DPRINTK("\n");
+       DPRINTK("fe_changed(%s,%d)\n", dev->nodename, frontend_state);
 
        switch (frontend_state) {
        case XenbusStateInitialising:



Attachment: xen-blktap-logging.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux/blktap: make debugging messages a little more meaningful, Jan Beulich <=