[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] sheepdog: fix dprintf format strings
From: |
MORITA Kazutaka |
Subject: |
[Qemu-devel] [PATCH 1/6] sheepdog: fix dprintf format strings |
Date: |
Wed, 27 Jun 2012 07:26:18 +0900 |
This fixes warnings about dprintf format in debug mode.
Signed-off-by: MORITA Kazutaka <address@hidden>
---
block/sheepdog.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/block/sheepdog.c b/block/sheepdog.c
index 8877f45..afd06aa 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -1571,11 +1571,11 @@ static int coroutine_fn sd_co_rw_vector(void *p)
}
if (create) {
- dprintf("update ino (%" PRIu32") %" PRIu64 " %" PRIu64
- " %" PRIu64 "\n", inode->vdi_id, oid,
+ dprintf("update ino (%" PRIu32 ") %" PRIu64 " %" PRIu64 " %ld\n",
+ inode->vdi_id, oid,
vid_to_data_oid(inode->data_vdi_id[idx], idx), idx);
oid = vid_to_data_oid(inode->vdi_id, idx);
- dprintf("new oid %lx\n", oid);
+ dprintf("new oid %" PRIx64 "\n", oid);
}
aio_req = alloc_aio_req(s, acb, oid, len, offset, flags, old_oid,
done);
@@ -1726,7 +1726,7 @@ static int sd_snapshot_create(BlockDriverState *bs,
QEMUSnapshotInfo *sn_info)
SheepdogInode *inode;
unsigned int datalen;
- dprintf("sn_info: name %s id_str %s s: name %s vm_state_size %d "
+ dprintf("sn_info: name %s id_str %s s: name %s vm_state_size %" PRId64 " "
"is_snapshot %d\n", sn_info->name, sn_info->id_str,
s->name, sn_info->vm_state_size, s->is_snapshot);
--
1.7.2.5
- [Qemu-devel] [PATCH 0/6] sheepdog: various fixes, MORITA Kazutaka, 2012/06/26
- [Qemu-devel] [PATCH 1/6] sheepdog: fix dprintf format strings,
MORITA Kazutaka <=
- [Qemu-devel] [PATCH 5/6] sheepdog: split outstanding list into inflight and pending, MORITA Kazutaka, 2012/06/26
- [Qemu-devel] [PATCH 4/6] sheepdog: make sure we don't free aiocb before sending all requests, MORITA Kazutaka, 2012/06/26
- [Qemu-devel] [PATCH 2/6] sheepdog: restart I/O when socket becomes ready in do_co_req(), MORITA Kazutaka, 2012/06/26
- [Qemu-devel] [PATCH 3/6] sheepdog: use coroutine based socket functions in coroutine context, MORITA Kazutaka, 2012/06/26
- [Qemu-devel] [PATCH 6/6] sheepdog: traverse pending_list from the first for each time, MORITA Kazutaka, 2012/06/26