diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-08-27 09:48:39 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-08-27 09:48:39 +0100 |
commit | 13d5024794e647faab603684472339092ebe478e (patch) | |
tree | 9ec92b28097c160c263c271a496ed4dde7159389 /extras/mini-os/include | |
parent | 1f1f49120fa490219c99862568236f5ba291bd84 (diff) | |
download | xen-13d5024794e647faab603684472339092ebe478e.tar.gz xen-13d5024794e647faab603684472339092ebe478e.tar.bz2 xen-13d5024794e647faab603684472339092ebe478e.zip |
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>
Diffstat (limited to 'extras/mini-os/include')
-rw-r--r-- | extras/mini-os/include/xenbus.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |