From: jasper Date: Mon, 13 Nov 2023 19:15:01 +0000 (+0000) Subject: include function name in warning printf in vmx_handle_np_fault() and svm_handle_np_fa... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=da03e41864ba75f999506cc08077f07e16395b64;p=openbsd include function name in warning printf in vmx_handle_np_fault() and svm_handle_np_fault() more clearer output ok mlarkin@ --- 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); }