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
|