aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_xshelp.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-28 09:31:43 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-28 09:31:43 +0100
commit4046aa9cbed80adad144103ab29e0ac9d171dbf4 (patch)
tree5e0b5fa49405f8ef347e449686cd241e4ee63768 /tools/libxl/libxl_xshelp.c
parent0f02f4e0e8dc3fbd87ab11a088f960a1f38ee87f (diff)
downloadxen-4046aa9cbed80adad144103ab29e0ac9d171dbf4.tar.gz
xen-4046aa9cbed80adad144103ab29e0ac9d171dbf4.tar.bz2
xen-4046aa9cbed80adad144103ab29e0ac9d171dbf4.zip
libxl: Fix up some incorrect printf formats
We need to use PRIu32 for domids, and also to pass arguments in the right order. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_xshelp.c')
-rw-r--r--tools/libxl/libxl_xshelp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c
index 16e8c842ee..b5c6dbfccb 100644
--- a/tools/libxl/libxl_xshelp.c
+++ b/tools/libxl/libxl_xshelp.c
@@ -19,6 +19,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdarg.h>
+#include <inttypes.h>
#include "libxl.h"
#include "libxl_internal.h"
@@ -119,7 +120,7 @@ char *libxl_xs_get_dompath(struct libxl_ctx *ctx, uint32_t domid)
{
char *s = xs_get_domain_path(ctx->xsh, domid);
if (!s) {
- XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "failed to get dompath for %lu",
+ XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "failed to get dompath for %" PRIu32,
domid);
return NULL;
}