mini-os: Add printf format checking to xenbus_printf
PATCH 1/1 mini-os: Add printf format checking to xenbus_printf
mini-os: Add printf format checking to xenbus_printf
Reported-by "Daniel P. Berrange" <[email protected]>
Signed-off-by Samuel Thibault <[email protected]>
extras/mini-os/include/xenbus.h +2 -1
@@ -88,7 +88,8 @@ int xenbus_read_integer(const char *path/* Contraction of snprintf and xenbus_write(path/node). */ char *xenbus_printf (xenbus_transaction_t xbt,const char * node,const char * path, -const char * fmt, ...); +const char * fmt, ...) + __attribute__((__format__ (printf,4 ,5 )));/* Reset the XenBus system. */ void fini_xenbus (void );