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] mini-os: fix fs-front.c debugging prints

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] mini-os: fix fs-front.c debugging prints
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Fri, 18 Jul 2008 18:03:49 +0100
Delivery-date: Fri, 18 Jul 2008 10:05:07 -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>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
mini-os: fix fs-front.c debugging prints

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>

diff -r 0af71964b228 extras/mini-os/fs-front.c
--- a/extras/mini-os/fs-front.c Thu Jul 17 18:04:23 2008 +0100
+++ b/extras/mini-os/fs-front.c Fri Jul 18 18:05:06 2008 +0100
@@ -183,12 +183,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_open call is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref id=%d\n", fsr->gref);
     fsr->thread = current;
     sprintf(fsr->page, "%s", file);
 
@@ -221,7 +222,7 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
@@ -261,12 +262,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_read call is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref=%d\n", fsr->gref);
     fsr->thread = current;
     memset(fsr->page, 0, PAGE_SIZE);
 
@@ -307,12 +309,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_read call is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref=%d\n", fsr->gref);
     fsr->thread = current;
     memcpy(fsr->page, buf, len);
     BUG_ON(len > PAGE_SIZE);
@@ -352,12 +355,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_stat call is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref=%d\n", fsr->gref);
     fsr->thread = current;
     memset(fsr->page, 0, PAGE_SIZE);
 
@@ -394,7 +398,7 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
@@ -432,12 +436,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_open call is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref=%d\n", fsr->gref);
     fsr->thread = current;
     sprintf(fsr->page, "%s", file);
 
@@ -475,12 +480,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_open call is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref=%d\n", fsr->gref);
     fsr->thread = current;
     sprintf(fsr->page, "%s%s%c%s%s", 
             old_header, old_file_name, '\0', new_header, new_file_name);
@@ -521,12 +527,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_create call is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref=%d\n", fsr->gref);
     fsr->thread = current;
     sprintf(fsr->page, "%s", name);
 
@@ -566,12 +573,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_list call is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref=%d\n", fsr->gref);
     fsr->thread = current;
     sprintf(fsr->page, "%s", name);
 
@@ -615,7 +623,7 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
@@ -653,12 +661,13 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);
     DEBUG("Request id for fs_space is: %d\n", priv_req_id);
     fsr = &import->requests[priv_req_id];
+    DEBUG("gref=%d\n", fsr->gref);
     fsr->thread = current;
     sprintf(fsr->page, "%s", location);
 
@@ -691,7 +700,7 @@
 
     /* Prepare request for the backend */
     back_req_id = reserve_fsif_request(import);
-    DEBUG("Backend request id=%d, gref=%d\n", back_req_id, fsr->gref);
+    DEBUG("Backend request id=%d\n", back_req_id);
 
     /* Prepare our private request structure */
     priv_req_id = get_id_from_freelist(import->freelist);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] mini-os: fix fs-front.c debugging prints, Samuel Thibault <=