aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-20 17:19:25 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-20 17:19:25 +0000
commit0bf9e31af1cc2915c9d250aab0ada0878df897ee (patch)
tree881f69538a0a506d2cbb41c7b0aa67bc8f4ea2bc /buffered_file.c
parentFix build with DEBUG_PCI in pci_host.h enabled (diff)
downloadqemu-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 'buffered_file.c')
-rw-r--r--buffered_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffered_file.c b/buffered_file.c
index 364b912f2..63de17d8f 100644
--- a/buffered_file.c
+++ b/buffered_file.c
@@ -113,7 +113,7 @@ static int buffered_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, in
int offset = 0;
ssize_t ret;
- dprintf("putting %ld bytes at %Ld\n", size, pos);
+ dprintf("putting %d bytes at %" PRId64 "\n", size, pos);
if (s->has_error) {
dprintf("flush when error, bailing\n");
@@ -151,7 +151,7 @@ static int buffered_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, in
}
if (offset >= 0) {
- dprintf("buffering %ld bytes\n", size - offset);
+ dprintf("buffering %d bytes\n", size - offset);
buffered_append(s, buf + offset, size - offset);
offset = size;
}