From 069d89b8a8dc5a9af4733bca14763b45bbb2546f Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 20 Jul 2011 08:27:28 +0200 Subject: 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 Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/9pfs/virtio-9p-debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/9pfs/virtio-9p-debug.c b/hw/9pfs/virtio-9p-debug.c index 4636ad51f0..96925f04a4 100644 --- a/hw/9pfs/virtio-9p-debug.c +++ b/hw/9pfs/virtio-9p-debug.c @@ -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; } -- cgit v1.2.1 From 5a61cb60d6ee8d49c553d7959363df26b55f4873 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 8 Sep 2011 17:55:32 +0200 Subject: Fix include statements for qemu-common.h * qemu-common.h is not a system include file, so it should be included with "" instead of <>. Otherwise incremental builds might fail because only local include files are checked for changes. * linux-user/syscall.c included the file twice. Cc: Riku Voipio Cc: Jan Kiszka Acked-by: Kevin Wolf Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 4df23f4228..d5d4757f62 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -11,7 +11,7 @@ * */ -#include +#include "qemu-common.h" #include "qemu-error.h" #include "trace.h" #include "blockdev.h" -- cgit v1.2.1