|
| From: | Anthony Liguori |
| Subject: | Re: [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->sector_num is long long |
| Date: | Wed, 22 Sep 2010 14:47:18 -0500 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100826 Lightning/1.0b1 Thunderbird/3.0.7 |
On 09/22/2010 02:33 PM, Peter Lemenkov wrote:
Signed-off-by: Peter Lemenkov<address@hidden>
---
block/blkverify.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/blkverify.c b/block/blkverify.c
index 4202685..033eab2 100644
--- a/block/blkverify.c
+++ b/block/blkverify.c
@@ -58,7 +58,7 @@ static void blkverify_err(BlkverifyAIOCB *acb, const char
*fmt, ...)
va_list ap;
va_start(ap, fmt);
- fprintf(stderr, "blkverify: %s sector_num=%ld nb_sectors=%d ",
+ fprintf(stderr, "blkverify: %s sector_num=%lld nb_sectors=%d ",
acb->is_write ? "write" : "read", acb->sector_num,
It's not a long long, it's a PRId64. I've updated appropriately. Regards, Anthony Liguori
acb->nb_sectors);
vfprintf(stderr, fmt, ap);
| [Prev in Thread] | Current Thread | [Next in Thread] |