xcp-1.6-updates/xen-4.1.hg

changeset 23265:0f1958876090

libxl: print out vifname in create dryrun.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>

xen-unstable changeset: 24458:19ac027a3c31
Backport-requested-by: Roderick Colenbrander <thunderbird2k@gmail.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Wei Liu <wei.liu2@citrix.com>
date Tue Mar 13 16:49:03 2012 +0000 (2012-03-13)
parents 3f158dd40b31
children 93fc9441e90c
files tools/libxl/xl_cmdimpl.c
line diff
     1.1 --- a/tools/libxl/xl_cmdimpl.c	Fri Mar 09 10:03:04 2012 +0000
     1.2 +++ b/tools/libxl/xl_cmdimpl.c	Tue Mar 13 16:49:03 2012 +0000
     1.3 @@ -393,6 +393,8 @@ static void printf_info(int domid,
     1.4      for (i = 0; i < d_config->num_vifs; i++) {
     1.5          printf("\t(device\n");
     1.6          printf("\t\t(vif\n");
     1.7 +        if (d_config->vifs[i].ifname)
     1.8 +            printf("\t\t\t(vifname %s)\n", d_config->vifs[i].ifname);
     1.9          printf("\t\t\t(backend_domid %d)\n", d_config->vifs[i].backend_domid);
    1.10          printf("\t\t\t(frontend_domid %d)\n", d_config->vifs[i].domid);
    1.11          printf("\t\t\t(devid %d)\n", d_config->vifs[i].devid);