aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_device.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2011-12-12 17:43:15 +0000
committerAndre Przywara <andre.przywara@amd.com>2011-12-12 17:43:15 +0000
commit0eefd1091284ac85e403cbe68ed133b51b7f046a (patch)
treea30e8d2c1833f345173116c9e621805513eac9a5 /tools/libxl/libxl_device.c
parent5c4d8c7d1b2d42ae575e44561a5860b4e0f6eee6 (diff)
downloadxen-0eefd1091284ac85e403cbe68ed133b51b7f046a.tar.gz
xen-0eefd1091284ac85e403cbe68ed133b51b7f046a.tar.bz2
xen-0eefd1091284ac85e403cbe68ed133b51b7f046a.zip
xl: fix compiler warnings
either GCC 4.6.1 or Ubuntu add -Werror=format-security to the -Wall set, so libxl compilation breaks: libxl_create.c: In function 'store_libxl_entry': libxl_create.c:454:9: error: format not a string literal and no format arguments [-Werror=format-security] cc1: all warnings being treated as errors Attached patch fixes this and another occurrence. Patch from: Uwe Dannowski Signed-off-by: Andre Przywara <andre.przywara@amd.com> Acked-by: Ian Jackson <ian.jackson@eu.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 a53fb70837..1db395c116 100644
--- a/tools/libxl/libxl_device.c
+++ b/tools/libxl/libxl_device.c
@@ -516,7 +516,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, path));
+ path = libxl__xs_read(gc, XBT_NULL, libxl__sprintf(gc, "%s", path));
if (path && libxl__parse_backend_path(gc, path, &dev) == 0) {
dev.domid = domid;
dev.kind = kind;