qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

qmp: Add missing gcc format attribute and fix format string

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>

authored by

Stefan Weil and committed by
Luiz Capitulino
aba2107a 80047da5

+4 -3
+4 -3
test-qmp-input-visitor.c
··· 38 38 /* This is provided instead of a test setup function so that the JSON 39 39 string used by the tests are kept in the test functions (and not 40 40 int main()) */ 41 - static Visitor *visitor_input_test_init(TestInputVisitorData *data, 42 - const char *json_string, ...) 41 + static GCC_FMT_ATTR(2, 3) 42 + Visitor *visitor_input_test_init(TestInputVisitorData *data, 43 + const char *json_string, ...) 43 44 { 44 45 Visitor *v; 45 46 va_list ap; ··· 66 67 Error *errp = NULL; 67 68 Visitor *v; 68 69 69 - v = visitor_input_test_init(data, "%d", value); 70 + v = visitor_input_test_init(data, "%" PRId64, value); 70 71 71 72 visit_type_int(v, &res, NULL, &errp); 72 73 g_assert(!error_is_set(&errp));