From 13d5024794e647faab603684472339092ebe478e Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 27 Aug 2008 09:48:39 +0100 Subject: mini-os: Add printf format checking to xenbus_printf Reported-by: "Daniel P. Berrange" Signed-off-by: Samuel Thibault --- extras/mini-os/include/xenbus.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/mini-os/include/xenbus.h b/extras/mini-os/include/xenbus.h index b386592950..e8de09f282 100644 --- a/extras/mini-os/include/xenbus.h +++ b/extras/mini-os/include/xenbus.h @@ -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); -- cgit v1.2.3