Samuel Thibault
2008-Aug-26 16:47 UTC
[Xen-devel] [PATCH] mini-os: Add printf format checking to xenbus_printf
mini-os: Add printf format checking to xenbus_printf Reported-by: "Daniel P. Berrange" <berrange@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> diff -r 43486a7f918c extras/mini-os/include/xenbus.h --- a/extras/mini-os/include/xenbus.h Tue Aug 26 16:38:23 2008 +0100 +++ b/extras/mini-os/include/xenbus.h Tue Aug 26 17:44:01 2008 +0100 @@ -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); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel