diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-07-20 17:19:25 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-07-20 17:19:25 +0000 |
commit | 0bf9e31af1cc2915c9d250aab0ada0878df897ee (patch) | |
tree | 881f69538a0a506d2cbb41c7b0aa67bc8f4ea2bc /block/qcow2-refcount.c | |
parent | Fix build with DEBUG_PCI in pci_host.h enabled (diff) | |
download | qemu-kvm-0bf9e31af1cc2915c9d250aab0ada0878df897ee.tar.gz qemu-kvm-0bf9e31af1cc2915c9d250aab0ada0878df897ee.tar.bz2 qemu-kvm-0bf9e31af1cc2915c9d250aab0ada0878df897ee.zip |
Fix most warnings (errors with -Werror) when debugging is enabled
I used the following command to enable debugging:
perl -p -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' * */* */*/*
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'block/qcow2-refcount.c')
-rw-r--r-- | block/qcow2-refcount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index e6c857e08..0aac2edee 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -277,7 +277,7 @@ static int update_refcount(BlockDriverState *bs, int first_index = -1, last_index = -1; #ifdef DEBUG_ALLOC2 - printf("update_refcount: offset=%lld size=%lld addend=%d\n", + printf("update_refcount: offset=%" PRId64 " size=%" PRId64 " addend=%d\n", offset, length, addend); #endif if (length <= 0) @@ -380,7 +380,7 @@ retry: goto retry; } #ifdef DEBUG_ALLOC2 - printf("alloc_clusters: size=%lld -> %lld\n", + printf("alloc_clusters: size=%" PRId64 " -> %" PRId64 "\n", size, (s->free_cluster_index - nb_clusters) << s->cluster_bits); #endif |