aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_internal.h
diff options
context:
space:
mode:
authorIan Jackson <Ian.Jackson@eu.citrix.com>2010-07-14 16:38:47 +0100
committerIan Jackson <Ian.Jackson@eu.citrix.com>2010-07-14 16:38:47 +0100
commit1304d52120c8c6fa9b837f25c83509aff13d60ec (patch)
treea3d9d5f87379d815077b46ac8681b094ef71523d /tools/libxl/libxl_internal.h
parent87f759dea0913d56c0b15741c144802f7954be7d (diff)
downloadxen-1304d52120c8c6fa9b837f25c83509aff13d60ec.tar.gz
xen-1304d52120c8c6fa9b837f25c83509aff13d60ec.tar.bz2
xen-1304d52120c8c6fa9b837f25c83509aff13d60ec.zip
libxl: add printf attribute to libxl_xs_write and fixup resulting warnings
There is an unfortunate warning for the empty format string by default which I workaround by adding -Wno-format-zero-length. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_internal.h')
-rw-r--r--tools/libxl/libxl_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index 29dd2661a3..4d549c4043 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -117,7 +117,7 @@ char **libxl_xs_kvs_of_flexarray(struct libxl_ctx *ctx, flexarray_t *array, int
int libxl_xs_writev(struct libxl_ctx *ctx, xs_transaction_t t,
char *dir, char **kvs);
int libxl_xs_write(struct libxl_ctx *ctx, xs_transaction_t t,
- char *path, char *fmt, ...);
+ char *path, char *fmt, ...) PRINTF_ATTRIBUTE(4, 5);
char *libxl_xs_get_dompath(struct libxl_ctx *ctx, uint32_t domid); // logs errs
char *libxl_xs_read(struct libxl_ctx *ctx, xs_transaction_t t, char *path);
char **libxl_xs_directory(struct libxl_ctx *ctx, xs_transaction_t t, char *path, unsigned int *nb);