From 5f8daf2e04709800531bc1ecbb7b49b637182777 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 1 Apr 2012 22:07:30 +0200 Subject: qxl: Add missing GCC_FMT_ATTR and fix format specifier val is an uint64_t, therefore %d was not correct. Signed-off-by: Stefan Weil Acked-by: Gerd Hoffmann Signed-off-by: Stefan Hajnoczi --- hw/qxl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/qxl.h') diff --git a/hw/qxl.h b/hw/qxl.h index 11a0db3..cbb1e2d 100644 --- a/hw/qxl.h +++ b/hw/qxl.h @@ -127,7 +127,7 @@ typedef struct PCIQXLDevice { /* qxl.c */ void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL phys, int group_id); -void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...); +void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...) GCC_FMT_ATTR(2, 3); void qxl_spice_update_area(PCIQXLDevice *qxl, uint32_t surface_id, struct QXLRect *area, struct QXLRect *dirty_rects, -- cgit v1.1