libxl: fix shutdown_reason type in list_domains
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 26 Apr 2016 10:07:50 +0000 (12:07 +0200)
committerWei Liu <wei.liu2@citrix.com>
Wed, 27 Apr 2016 13:12:50 +0000 (14:12 +0100)
It should be an enum, not an unsigned.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c

index 63460175f02e40bd6f4655b7c75e2341c3377d0c..8ff54e1d996512cdffdaba11c9530c38acb5102b 100644 (file)
@@ -4254,7 +4254,7 @@ static void list_domains(bool verbose, bool context, bool claim, bool numa,
     printf("\n");
     for (i = 0; i < nb_domain; i++) {
         char *domname;
-        unsigned shutdown_reason;
+        libxl_shutdown_reason shutdown_reason;
         domname = libxl_domid_to_name(ctx, info[i].domid);
         shutdown_reason = info[i].shutdown ? info[i].shutdown_reason : 0;
         printf("%-40s %5d %5lu %5d     %c%c%c%c%c%c  %8.1f",