[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 04 of 18] tools/blktap: fix access error in qcow2raw.c
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1333046229 -7200 # Node ID 9abe0baa60fb8773707118856c300c1dd478aaf2 # Parent 526135e426fa80dfd58c272b41cd3f4ab39c62d6 tools/blktap: fix access error in qcow2raw.c qcow2raw.c: In function 'print_bytes': qcow2raw.c:76:9: warning: value computed is not used [-Wunused-value] Increment the pointer, not the char it points to. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> diff -r 526135e426fa -r 9abe0baa60fb tools/blktap/drivers/qcow2raw.c --- a/tools/blktap/drivers/qcow2raw.c +++ b/tools/blktap/drivers/qcow2raw.c @@ -73,7 +73,7 @@ static void print_bytes(void *ptr, int l DFPRINTF("Buf dump, length %d:\n",length); for (k = 0; k < length; k++) { DFPRINTF("%x",*p); - *p++; + p++; if (k % 16 == 0) DFPRINTF("\n"); else if (k % 2 == 0) DFPRINTF(" "); } _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |