• Philippe Mathieu-Daudé's avatar
    trace: Fix format string for the struct timeval members casted to size_t · 82c4f87e
    Philippe Mathieu-Daudé authored
    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: 's avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
    Signed-off-by: 's avatarStefan Hajnoczi <stefanha@redhat.com>
    82c4f87e
Name
Last commit
Last update
..
backend Loading commit data...
format Loading commit data...
__init__.py Loading commit data...
transform.py Loading commit data...
vcpu.py Loading commit data...