aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_device.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-12-13 15:31:12 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-12-13 15:31:12 +0000
commitc3bf51381044d61bb94ad72613563da8e3cd67d3 (patch)
tree74cc8f65649a0596dcf019a53bc728439b9aa608 /tools/libxl/libxl_device.c
parent64a481aee65956c97d2627c9eca81a55d584bbfe (diff)
downloadxen-c3bf51381044d61bb94ad72613563da8e3cd67d3.tar.gz
xen-c3bf51381044d61bb94ad72613563da8e3cd67d3.tar.bz2
xen-c3bf51381044d61bb94ad72613563da8e3cd67d3.zip
libxl: Compile with -Wformat-nonliteral.
At least one compiler (some Ubuntu version) uses this by default and it seems like a good idea anyway and the fixup required is trivial. One hunk is from a patch by Ian Jackson. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reported-by: Adda Rathbone <addarathbone@googlemail.com> Tested-by: Adda Rathbone <addarathbone@googlemail.com> Tested-by: Andrew Pounce <andrew.pounce@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_device.c')
-rw-r--r--tools/libxl/libxl_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c
index 5969ae32ce..f0f3d09d87 100644
--- a/tools/libxl/libxl_device.c
+++ b/tools/libxl/libxl_device.c
@@ -515,7 +515,7 @@ int libxl__devices_destroy(libxl__gc *gc, uint32_t domid, int force)
for (j = 0; j < num_devs; j++) {
path = libxl__sprintf(gc, "/local/domain/%d/device/%s/%s/backend",
domid, kinds[i], devs[j]);
- path = libxl__xs_read(gc, XBT_NULL, libxl__sprintf(gc, "%s", path));
+ path = libxl__xs_read(gc, XBT_NULL, path);
if (path && libxl__parse_backend_path(gc, path, &dev) == 0) {
dev.domid = domid;
dev.kind = kind;