diff mbox

[17/28] libxl: emuids: Do not open-code device-model/%u in libxl__destroy_qdisk_backend

Message ID 1450809903-3393-18-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson Dec. 22, 2015, 6:44 p.m. UTC
This is used in a driver domain context and doesn't get the caller's
domid.  But that's OK, we can now use libxl__dm_xs_path_rel which
returns the same value as previously.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 tools/libxl/libxl_dm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 5b56047..3bf1317 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -2109,7 +2109,7 @@  int libxl__destroy_qdisk_backend(libxl__gc *gc, uint32_t domid)
 
     libxl__xs_rm_checked(gc, XBT_NULL, pid_path);
     libxl__xs_rm_checked(gc, XBT_NULL,
-                         GCSPRINTF("device-model/%u", domid));
+                         libxl__dm_xs_path_rel(gc, domid, EMUID_PV));
 
 out:
     return rc;