[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3 of 5] xenalyze: Print exit reason number if no string is available
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx> diff -r 9a2c804a8a6f -r a2044b64720b xenalyze.c --- a/xenalyze.c Fri Oct 07 11:32:09 2011 +0100 +++ b/xenalyze.c Fri Oct 07 11:33:28 2011 +0100 @@ -5318,8 +5318,13 @@ void hvm_summary(struct hvm_data *h) { printf("Exit reasons:\n"); for(i=0; i<h->exit_reason_max; i++) { - PRINT_SUMMARY(h->summary.exit_reason[i], - " %-20s ", h->exit_reason_name[i]); + if ( h->exit_reason_name[i] ) + PRINT_SUMMARY(h->summary.exit_reason[i], + " %-20s ", h->exit_reason_name[i]); + else + PRINT_SUMMARY(h->summary.exit_reason[i], + " %20d ", i); + if(h->exit_reason_summary_handler[i]) h->exit_reason_summary_handler[i](h); } _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |