[Qemu-devel] [PATCH] block: Use GCC_FMT_ATTR and fix a format error

2010-09-24 Thread Stefan Weil
Adding the gcc format attribute detects a format bug which is fixed here. v2: Don't use type cast. BDRV_SECTOR_SIZE is unsigned long long, so %lld should be the correct format specifier. Cc: Blue Swirl Cc: Kevin Wolf Signed-off-by: Stefan Weil --- block/blkverify.c |5 +++-- 1 files chang

[Qemu-devel] [PATCH] block: Use GCC_FMT_ATTR and fix a format error

2010-09-23 Thread Stefan Weil
Adding the gcc format attribute detects a format bug which is fixed here. Cc: Blue Swirl Cc: Kevin Wolf Signed-off-by: Stefan Weil --- block/blkverify.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/block/blkverify.c b/block/blkverify.c index 8083464..b39fb67 100