From da03e41864ba75f999506cc08077f07e16395b64 Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 13 Nov 2023 19:15:01 +0000 Subject: [PATCH] include function name in warning printf in vmx_handle_np_fault() and svm_handle_np_fault() more clearer output ok mlarkin@ --- sys/arch/amd64/amd64/vmm_machdep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/arch/amd64/amd64/vmm_machdep.c b/sys/arch/amd64/amd64/vmm_machdep.c index 8cf51667407..b3dc2919e09 100644 --- a/sys/arch/amd64/amd64/vmm_machdep.c +++ b/sys/arch/amd64/amd64/vmm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm_machdep.c,v 1.8 2023/09/06 03:35:57 dv Exp $ */ +/* $OpenBSD: vmm_machdep.c,v 1.9 2023/11/13 19:15:01 jasper Exp $ */ /* * Copyright (c) 2014 Mike Larkin * @@ -4922,8 +4922,8 @@ svm_handle_np_fault(struct vcpu *vcpu) ret = EAGAIN; break; default: - printf("unknown memory type %d for GPA 0x%llx\n", - gpa_memtype, gpa); + printf("%s: unknown memory type %d for GPA 0x%llx\n", + __func__, gpa_memtype, gpa); return (EINVAL); } @@ -5020,8 +5020,8 @@ vmx_handle_np_fault(struct vcpu *vcpu) } break; default: - printf("unknown memory type %d for GPA 0x%llx\n", - gpa_memtype, gpa); + printf("%s: unknown memory type %d for GPA 0x%llx\n", + __func__, gpa_memtype, gpa); return (EINVAL); } -- 2.20.1