virtio-9p: Fix syntax error in debug code
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'.
--- hw/9pfs/virtio-9p-debug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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; }
Signature · 1 line
1.7.2.5
Aneesh Kumar K.V
AppliedQuoted 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]>Signed-off-by Stefan Weil <[email protected]>--- hw/9pfs/virtio-9p-debug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)hw/9pfs/virtio-9p-debug.c +0
-0
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
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]>Signed-off-by Stefan Weil <[email protected]>---
hw/9pfs/virtio-9p-debug.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)hw/9pfs/virtio-9p-debug.c +0
-0hw/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.
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]>Signed-off-by Stefan Weil <[email protected]>---
hw/9pfs/virtio-9p-debug.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)hw/9pfs/virtio-9p-debug.c +0
-0hw/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