diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-05-11 08:00:42 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-05-11 08:00:42 +0000 |
commit | 2160281c59ce6069aac0fe74c6812b141f706baf (patch) | |
tree | f47966047f29e249f8bc745044940930b65a1ea6 /sys | |
parent | 6e6839bc1a51b373f5f06c70597b720566da00d1 (diff) |
panic doesn't need \n.
Suggested by Michael W. Bombardieri, thanks.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/vmm.c | 18 | ||||
-rw-r--r-- | sys/arch/i386/i386/vmm.c | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index 6d72611f46d..1b08ee38506 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.140 2017/05/07 21:17:00 mlarkin Exp $ */ +/* $OpenBSD: vmm.c,v 1.141 2017/05/11 08:00:41 mlarkin Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -666,7 +666,7 @@ vm_rwregs(struct vm_rwregs_params *vrwp, int dir) vcpu_readregs_svm(vcpu, vrwp->vrwp_mask, vrs) : vcpu_writeregs_svm(vcpu, vrwp->vrwp_mask, vrs); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); } /* @@ -898,7 +898,7 @@ stop_vmm_on_cpu(struct cpu_info *ci) */ if (ci->ci_vmm_flags & CI_VMM_VMX) { if (vmxoff()) - panic("VMXOFF failed\n"); + panic("VMXOFF failed"); cr4 = rcr4(); cr4 &= ~CR4_VMXE; @@ -1233,7 +1233,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\n"); + panic("unknown vmm mode"); } /* @@ -1273,7 +1273,7 @@ vm_impl_deinit(struct vm *vm) vmm_softc->mode == VMM_MODE_RVI) vm_impl_deinit_svm(vm); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); } /* @@ -2633,7 +2633,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\n"); + panic("unknown vmm mode"); return (ret); } @@ -2778,7 +2778,7 @@ vcpu_init(struct vcpu *vcpu) vmm_softc->mode == VMM_MODE_RVI) ret = vcpu_init_svm(vcpu); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); return (ret); } @@ -2851,7 +2851,7 @@ vcpu_deinit(struct vcpu *vcpu) vmm_softc->mode == VMM_MODE_RVI) vcpu_deinit_svm(vcpu); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); } /* @@ -4091,7 +4091,7 @@ vmm_get_guest_faulttype(void) else if (vmm_softc->mode == VMM_MODE_RVI) return vmx_get_guest_faulttype(); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); } /* diff --git a/sys/arch/i386/i386/vmm.c b/sys/arch/i386/i386/vmm.c index d19be706aa8..02ce3133551 100644 --- a/sys/arch/i386/i386/vmm.c +++ b/sys/arch/i386/i386/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.29 2017/05/02 07:18:19 mlarkin Exp $ */ +/* $OpenBSD: vmm.c,v 1.30 2017/05/11 08:00:41 mlarkin Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -670,7 +670,7 @@ vm_rwregs(struct vm_rwregs_params *vrwp, int dir) vcpu_readregs_svm(vcpu, vrwp->vrwp_mask, vrs) : vcpu_writeregs_svm(vcpu, vrwp->vrwp_mask, vrs); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); } /* @@ -902,7 +902,7 @@ stop_vmm_on_cpu(struct cpu_info *ci) */ if (ci->ci_vmm_flags & CI_VMM_VMX) { if (vmxoff()) - panic("VMXOFF failed\n"); + panic("VMXOFF failed"); cr4 = rcr4(); cr4 &= ~CR4_VMXE; @@ -1237,7 +1237,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\n"); + panic("unknown vmm mode"); } /* @@ -1277,7 +1277,7 @@ vm_impl_deinit(struct vm *vm) vmm_softc->mode == VMM_MODE_RVI) vm_impl_deinit_svm(vm); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); } /* @@ -2593,7 +2593,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\n"); + panic("unknown vmm mode"); return (ret); } @@ -2738,7 +2738,7 @@ vcpu_init(struct vcpu *vcpu) vmm_softc->mode == VMM_MODE_RVI) ret = vcpu_init_svm(vcpu); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); return (ret); } @@ -2811,7 +2811,7 @@ vcpu_deinit(struct vcpu *vcpu) vmm_softc->mode == VMM_MODE_RVI) vcpu_deinit_svm(vcpu); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); } /* @@ -3883,7 +3883,7 @@ vmm_get_guest_faulttype(void) else if (vmm_softc->mode == VMM_MODE_RVI) return vmx_get_guest_faulttype(); else - panic("unknown vmm mode\n"); + panic("unknown vmm mode"); } /* |