[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xl: Fix xl vcpu-list output on machines with more than 16 cores
# HG changeset patch # User Andre Przywara <andre.przywara@xxxxxxx> # Date 1281450913 -3600 # Node ID cb71d0d30f0ce90193b8bff641127a02d44182ac # Parent 2ae7433fa5f2d42dd992fad8e29e80a0947c0ba2 xl: Fix xl vcpu-list output on machines with more than 16 cores Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> --- tools/libxl/xl_cmdimpl.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 2ae7433fa5f2 -r cb71d0d30f0c tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Tue Aug 10 15:32:12 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Tue Aug 10 15:35:13 2010 +0100 @@ -3213,7 +3213,7 @@ static void print_vcpuinfo(uint32_t tdom /* TIM */ printf("%9.1f ", ((float)vcpuinfo->vcpu_time / 1e9)); /* CPU AFFINITY */ - pcpumap = nr_cpus > 64 ? -1 : ((1 << nr_cpus) - 1); + pcpumap = nr_cpus > 64 ? (uint64_t)-1 : ((1ULL << nr_cpus) - 1); for (cpumap = vcpuinfo->cpumap; nr_cpus; ++cpumap) { if (*cpumap < pcpumap) { break; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |