* [PATCH] mini-os: Add printf format checking to xenbus_printf
@ 2008-08-26 16:47 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-08-26 16:47 UTC (permalink / raw)
Cc: xen-devel
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-26 16:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-26 16:47 [PATCH] mini-os: Add printf format checking to xenbus_printf Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.