debuggers.hg

changeset 22283:5eee67899140

xl: correct migration_domname_r

22154:ed8019e672c6 causes migration_domname_r to be initialised as
d_config.c_info.name + "--incoming" immediately after setting
d_config.c_info.name. The intention appears to have been to set it to
common_domname + "--incoming" so do so.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Wed Oct 13 11:37:02 2010 +0100 (2010-10-13)
parents 6e8dd34122e7
children 6eaab8297681
files tools/libxl/xl_cmdimpl.c
line diff
     1.1 --- a/tools/libxl/xl_cmdimpl.c	Tue Oct 12 10:27:56 2010 +0100
     1.2 +++ b/tools/libxl/xl_cmdimpl.c	Wed Oct 13 11:37:02 2010 +0100
     1.3 @@ -1551,7 +1551,7 @@ static int create_domain(struct domain_c
     1.4              d_config.c_info.name = 0; /* steals allocation from config */
     1.5  
     1.6              if (asprintf(&d_config.c_info.name,
     1.7 -                         "%s--incoming", d_config.c_info.name) < 0) {
     1.8 +                         "%s--incoming", common_domname) < 0) {
     1.9                  fprintf(stderr, "Failed to allocate memory in asprintf\n");
    1.10                  exit(1);
    1.11              }