diff options
| author | Philippe Mathieu-Daudé | 2018-06-21 19:12:47 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2018-06-29 16:04:18 +0200 |
| commit | 82c4f87e0ed1701c1f51a46a3146643ed89b0bef (patch) | |
| tree | f12a0fa1d3c7adb91f039aebdcd1f118ba560d0b /scripts/switch-timer-api | |
| parent | simpletrace: Convert name from mapping record to str (diff) | |
| download | qemu-82c4f87e0ed1701c1f51a46a3146643ed89b0bef.tar.gz qemu-82c4f87e0ed1701c1f51a46a3146643ed89b0bef.tar.xz qemu-82c4f87e0ed1701c1f51a46a3146643ed89b0bef.zip | |
trace: Fix format string for the struct timeval members casted to size_t
This fixes when using GCC with -Wformat-signedness:
migration/trace.h: In function ‘_nocheck__trace_dirty_bitmap_load_success’:
migration/trace.h:6368:24: error: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 3 has type ‘long unsigned int’ [-Werror=format=]
qemu_log("%d@%zd.%06zd:dirty_bitmap_load_success " "" "\n",
~~^
%ld
migration/trace.h:6370:18:
(size_t)_now.tv_sec, (size_t)_now.tv_usec
~~~~~~~~~~~~~~~~~~~
migration/trace.h:6368:30: error: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 4 has type ‘long unsigned int’ [-Werror=format=]
qemu_log("%d@%zd.%06zd:dirty_bitmap_load_success " "" "\n",
~~~~^
%06ld
migration/trace.h:6370:39:
(size_t)_now.tv_sec, (size_t)_now.tv_usec
~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
