diff options
author | Nayden Markatchev <nayden@cvs.openbsd.org> | 2018-07-11 18:04:19 +0000 |
---|---|---|
committer | Nayden Markatchev <nayden@cvs.openbsd.org> | 2018-07-11 18:04:19 +0000 |
commit | 4825185acc5f6b7cadef1e01ec0ea1de58c31ddc (patch) | |
tree | 06437f48d1244b2a8924b9e18dc26d8fbcdd038f /sys/arch/amd64 | |
parent | 9a719bbcf4d98dd0a84c970ed5052dbf646923a0 (diff) |
adding __func__ identifier to panic() calls in vmm.c for amd64 and i386
ok mlarkin@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/vmm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index a5f780be96a..1b67245908e 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.213 2018/07/11 13:19:42 mlarkin Exp $ */ +/* $OpenBSD: vmm.c,v 1.214 2018/07/11 18:04:18 nayden Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -1287,7 +1287,7 @@ vm_impl_init(struct vm *vm, struct proc *p) vmm_softc->mode == VMM_MODE_RVI) return vm_impl_init_svm(vm, p); else - panic("unknown vmm mode"); + panic("%s: unknown vmm mode: %d", __func__, vmm_softc->mode); } /* @@ -1336,7 +1336,7 @@ vm_impl_deinit(struct vm *vm) vmm_softc->mode == VMM_MODE_RVI) vm_impl_deinit_svm(vm); else - panic("unknown vmm mode"); + panic("%s: unknown vmm mode: %d", __func__, vmm_softc->mode); } /* @@ -3023,7 +3023,7 @@ vcpu_reset_regs(struct vcpu *vcpu, struct vcpu_reg_state *vrs) vmm_softc->mode == VMM_MODE_RVI) ret = vcpu_reset_regs_svm(vcpu, vrs); else - panic("unknown vmm mode"); + panic("%s: unknown vmm mode: %d", __func__, vmm_softc->mode); return (ret); } @@ -3169,7 +3169,7 @@ vcpu_init(struct vcpu *vcpu) vmm_softc->mode == VMM_MODE_RVI) ret = vcpu_init_svm(vcpu); else - panic("unknown vmm mode"); + panic("%s: unknown vmm mode: %d", __func__, vmm_softc->mode); return (ret); } @@ -3247,7 +3247,7 @@ vcpu_deinit(struct vcpu *vcpu) vmm_softc->mode == VMM_MODE_RVI) vcpu_deinit_svm(vcpu); else - panic("unknown vmm mode"); + panic("%s: unknown vmm mode: %d", __func__, vmm_softc->mode); } /* @@ -4762,7 +4762,7 @@ vmm_get_guest_faulttype(void) else if (vmm_softc->mode == VMM_MODE_RVI) return vmx_get_guest_faulttype(); else - panic("unknown vmm mode"); + panic("%s: unknown vmm mode: %d", __func__, vmm_softc->mode); } /* |