summaryrefslogtreecommitdiffstats
path: root/include/xen/xenbus.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-06-12 09:21:13 -0700
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-06-30 12:14:40 -0400
commit08b8bfc1c649cf82edf43f686cbb9a4bac809679 (patch)
tree1706e037fc0fa2596bd96ff11fcb9fed4b6a1c19 /include/xen/xenbus.h
parentf7fdd84e04c8fdc9196abe3bfd27535bccb52ee5 (diff)
downloadop-kernel-dev-08b8bfc1c649cf82edf43f686cbb9a4bac809679.zip
op-kernel-dev-08b8bfc1c649cf82edf43f686cbb9a4bac809679.tar.gz
xen: Add __attribute__((format(printf... where appropriate
Use the compiler to verify printf formats and arguments. Fix fallout. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/xen/xenbus.h')
-rw-r--r--include/xen/xenbus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h
index 5467369..aceeca7 100644
--- a/include/xen/xenbus.h
+++ b/include/xen/xenbus.h
@@ -223,7 +223,9 @@ int xenbus_free_evtchn(struct xenbus_device *dev, int port);
enum xenbus_state xenbus_read_driver_state(const char *path);
+__attribute__((format(printf, 3, 4)))
void xenbus_dev_error(struct xenbus_device *dev, int err, const char *fmt, ...);
+__attribute__((format(printf, 3, 4)))
void xenbus_dev_fatal(struct xenbus_device *dev, int err, const char *fmt, ...);
const char *xenbus_strstate(enum xenbus_state state);
OpenPOWER on IntegriCloud