Index: usr.sbin/bhyvectl/bhyvectl.c =================================================================== --- usr.sbin/bhyvectl/bhyvectl.c +++ usr.sbin/bhyvectl/bhyvectl.c @@ -461,7 +461,7 @@ static int dump_msr_bitmap(int vcpu, uint64_t addr, bool cpu_intel) { - int error, fd, map_size; + int error, fd, map_size = 0; const char *bitmap; error = -1; @@ -1557,18 +1557,16 @@ prot & PROT_WRITE ? 'W' : '-', prot & PROT_EXEC ? 'X' : '-'); - delim = '\0'; + delim = '/'; if (flags & VM_MEMMAP_F_WIRED) { printf("%cwired", delim); - delim = '/'; } if (flags & VM_MEMMAP_F_IOMMU) { printf("%ciommu", delim); - delim = '/'; } printf("\n"); - gpa += maplen; + gpa+= maplen; } }