[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] mini-os: Add printf format checking to xenbus_printf



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1219826919 -3600
# Node ID e827b524772c8d37593a4e3de77ceb26029a4278
# Parent  38557884d2cd63b12c4ec45bcca460bca7f66040
mini-os: Add printf format checking to xenbus_printf

Reported-by: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
 extras/mini-os/include/xenbus.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 38557884d2cd -r e827b524772c extras/mini-os/include/xenbus.h
--- a/extras/mini-os/include/xenbus.h   Wed Aug 27 09:48:09 2008 +0100
+++ b/extras/mini-os/include/xenbus.h   Wed Aug 27 09:48:39 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.