diff options
author | Juan Quintela <quintela@redhat.com> | 2015-11-10 17:42:05 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2015-11-12 17:52:29 +0100 |
commit | 9458ad6b445ff1e886f74ed75cf5050721f93b3e (patch) | |
tree | af9e1213149e5fc022f6a594f466101af0f61c2d /migration/ram.c | |
parent | ed6c64489ef11d9ac5fb4b4c89d455a4f1ae8083 (diff) |
migration: print ram_addr_t as RAM_ADDR_FMT not %zx
Not all the wold is 64bits (yet).
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/migration/ram.c b/migration/ram.c index 62cf42bfdb..d8d5a50bff 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1184,7 +1184,8 @@ int ram_save_queue_pages(MigrationState *ms, const char *rbname, } trace_ram_save_queue_pages(ramblock->idstr, start, len); if (start+len > ramblock->used_length) { - error_report("%s request overrun start=%zx len=%zx blocklen=%zx", + error_report("%s request overrun start=" RAM_ADDR_FMT " len=" + RAM_ADDR_FMT " blocklen=" RAM_ADDR_FMT, __func__, start, len, ramblock->used_length); goto err; } @@ -1845,7 +1846,7 @@ int ram_discard_range(MigrationIncomingState *mis, ret = postcopy_ram_discard_range(mis, host_startaddr, length); } else { error_report("ram_discard_range: Overrun block '%s' (%" PRIu64 - "/%zu/%zu)", + "/%zx/" RAM_ADDR_FMT")", block_name, start, length, rb->used_length); } |