From: Trammell Hudson Date: Wed, 22 Oct 2008 15:40:43 +0000 (-0500) Subject: Enable printf warnings on info/debug/trace os hooks X-Git-Tag: 1.0^2~13 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=9881f0e9f9327b8acdab8d119c2c7c4274ee69b9 Enable printf warnings on info/debug/trace os hooks --- diff --git a/palacios/include/palacios/vmm.h b/palacios/include/palacios/vmm.h index cafc5ab..82a8fc2 100644 --- a/palacios/include/palacios/vmm.h +++ b/palacios/include/palacios/vmm.h @@ -211,9 +211,12 @@ struct guest_info; /* This will contain function pointers that provide OS services */ struct v3_os_hooks { - void (*print_info)(const char * format, ...); - void (*print_debug)(const char * format, ...); - void (*print_trace)(const char * format, ...); + void (*print_info)(const char * format, ...) + __attribute__ ((format (printf, 1, 2))); + void (*print_debug)(const char * format, ...) + __attribute__ ((format (printf, 1, 2))); + void (*print_trace)(const char * format, ...) + __attribute__ ((format (printf, 1, 2))); void *(*allocate_pages)(int numPages); void (*free_page)(void * page);