Skip to contentSkip to conversation

virtio-9p: Fix syntax error in debug code

PATCH Applied Stefan Weil 3 participants 4 messages Jul 20, 2011 – Sep 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-9p: Fix syntax error in debug code

This error was reported by cppcheck:

qemu/hw/9pfs/virtio-9p-debug.c:342:
error: Invalid number of character ({) when these macros are defined:
'DEBUG_DATA'.

Cc Aneesh Kumar K.V <[email protected]>
---
 hw/9pfs/virtio-9p-debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/9pfs/virtio-9p-debug.c +1 -1
index 4636ad5..96925f0 100644
@@ -295,7 +295,7 @@ static void pprint_data(V9fsPDU *pdu, int rx, size_t *offsetp, const char *name)
 
     if (rx) {
         count = pdu->elem.in_num;
-    } else
+    } else {
         count = pdu->elem.out_num;
     }
 
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 17 lines · Stefan Weil

This error was reported by cppcheck:

qemu/hw/9pfs/virtio-9p-debug.c:342:
error: Invalid number of character ({) when these macros are defined:
'DEBUG_DATA'.

Cc Aneesh Kumar K.V <[email protected]>
---
 hw/9pfs/virtio-9p-debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/9pfs/virtio-9p-debug.c +0 -0
index 4636ad5..96925f0 100644

hw/9pfs/virtio-9p-debug.c static void pprint_data(V9fsPDU *pdu, int rx, size_t *offsetp, const char *name) · line 301

Quoted 8 lines
hw/9pfs/virtio-9p-debug.c +1 -1
@@ -295,7 +295,7 @@ static void pprint_data(V9fsPDU *pdu, int rx, size_t *offsetp, const char *name)
 
     if (rx) {
         count = pdu->elem.in_num;
-    } else
+    } else {
         count = pdu->elem.out_num;
     }
 

Applied.

We also need to update virtio-9p-debug w.r.t the new co-routine series. With co-routine we can have multiple 9p handler started simultaneously.

-aneesh

#2 lore raw

Am 20.07.2011 11:44, schrieb Aneesh Kumar K.V:

Quoted 30 lines · Stefan Weil
Quoted 18 lines

This error was reported by cppcheck:

qemu/hw/9pfs/virtio-9p-debug.c:342:
error: Invalid number of character ({) when these macros are defined:
'DEBUG_DATA'.

Cc Aneesh Kumar K.V <[email protected]>

---
hw/9pfs/virtio-9p-debug.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
hw/9pfs/virtio-9p-debug.c +0 -0
index 4636ad5..96925f0 100644

hw/9pfs/virtio-9p-debug.c static void pprint_data(V9fsPDU *pdu, int rx, · line 301

Quoted 8 lines
hw/9pfs/virtio-9p-debug.c +1 -1
@@ -295,7 +295,7 @@ static void pprint_data(V9fsPDU *pdu, int rx, 
 size_t *offsetp, const char *name)
 
 if (rx) {
 count = pdu->elem.in_num;
- } else
+ } else {
 count = pdu->elem.out_num;
 }

Applied.

Quoted 5 lines

We also need to update virtio-9p-debug w.r.t the new co-routine series. With co-routine we can have multiple 9p handler started simultaneously.

-aneesh

Maybe this patch can be applied via qemu-trivial.
I simply would like to get it out of my list of open patches.

Thanks,
Stefan W.

#3 lore raw
Quoted 32 lines · Stefan Weil

Am 20.07.2011 11:44, schrieb Aneesh Kumar K.V:

Quoted 31 lines
Quoted 18 lines · Stefan Weil

This error was reported by cppcheck:

qemu/hw/9pfs/virtio-9p-debug.c:342:
error: Invalid number of character ({) when these macros are defined:
'DEBUG_DATA'.

Cc Aneesh Kumar K.V <[email protected]>

---
hw/9pfs/virtio-9p-debug.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
hw/9pfs/virtio-9p-debug.c +0 -0
index 4636ad5..96925f0 100644

hw/9pfs/virtio-9p-debug.c static void pprint_data(V9fsPDU *pdu, int · line 301

Quoted 8 lines
hw/9pfs/virtio-9p-debug.c +1 -1
@@ -295,7 +295,7 @@ static void pprint_data(V9fsPDU *pdu, int
 rx, size_t *offsetp, const char *name)
 
 if (rx) {
 count = pdu->elem.in_num;
- } else
+ } else {
 count = pdu->elem.out_num;
 }

Applied.

Quoted 8 lines
Quoted 5 lines

We also need to update virtio-9p-debug w.r.t the new co-routine series. With co-routine we can have multiple 9p handler started simultaneously.

-aneesh

Maybe this patch can be applied via qemu-trivial.
I simply would like to get it out of my list of open patches.

I checked with Aneesh who agreed to move this patch through the trivial-patches tree. This patch has been applied to the trivial patches -next tree:

http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches-next

Stefan