mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
c0a2a096a0
commit
0bf9e31af1
21 changed files with 95 additions and 103 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue