diff --git a/kvmdump.c b/kvmdump.c index 4db96bd..e515bf0 100644 --- a/kvmdump.c +++ b/kvmdump.c @@ -297,7 +297,7 @@ kvmdump_memory_dump(FILE *ofp) (ulonglong)kvm->page_cache[i].paddr); } - fprintf(ofp, " cpu_devices: %d\n", kvm->cpu_devices); + fprintf(ofp, " cpu_devices: %ld\n", kvm->cpu_devices); fprintf(ofp, " iohole: %llx (%llx - %llx)\n", (ulonglong)kvm->iohole, 0x100000000ULL - kvm->iohole, 0x100000000ULL); diff --git a/kvmdump.h b/kvmdump.h index 07e047b..2e408ae 100644 --- a/kvmdump.h +++ b/kvmdump.h @@ -64,7 +64,7 @@ struct kvmdump_data { ulong compresses; uint64_t kvbase; ulong *debug; - uint32_t cpu_devices; + uint64_t cpu_devices; struct register_set *registers; uint64_t iohole; };