aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Murray <murrayie@yahoo.co.uk>2013-07-04 23:42:50 +0000
committerIan Jackson <Ian.Jackson@eu.citrix.com>2013-07-12 14:21:50 +0100
commit23830f68e1878ef92606d0e0b0511762fbb3d9a8 (patch)
tree173ced7c4486f93929fc3bf326655462aa62f66a
parent253d1cb0e217ddf60f9a9ef3dca541368a86b93e (diff)
downloadxen-23830f68e1878ef92606d0e0b0511762fbb3d9a8.tar.gz
xen-23830f68e1878ef92606d0e0b0511762fbb3d9a8.tar.bz2
xen-23830f68e1878ef92606d0e0b0511762fbb3d9a8.zip
Fix issue with 'xl list -l' showing domids as -1 when using SXP
During investigation of other issues, it came to light that in at least 4.2.2, "xl list -l" displays domain ids as -1 when using SXP, irrespective of actual value. Ian C identified that this issue was likely fixed in the upcoming 4.3 release but the commit responsible for the fix (a73a7a0c647a9a5e30d8bc473c0a1e8648817183) was not likely a candidate for backporting in its entirety. Therefore, this patch is just an isolation of the hunk to fix the above issue. Original Commit Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Backport Created-by: Ian Murray <murrayie@yahoo.co.uk>
-rw-r--r--tools/libxl/xl_cmdimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 77804261cc..fe8dc92d6b 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -2809,7 +2809,7 @@ static void list_domains_details(const libxl_dominfo *info, int nb_domain)
if (default_output_format == OUTPUT_FORMAT_JSON)
s = printf_info_one_json(hand, info[i].domid, &d_config);
else
- printf_info_sexp(domid, &d_config);
+ printf_info_sexp(info[i].domid, &d_config);
libxl_domain_config_dispose(&d_config);
free(data);
free(config_source);