include function name in warning printf in vmx_handle_np_fault() and svm_handle_np_fa...
authorjasper <jasper@openbsd.org>
Mon, 13 Nov 2023 19:15:01 +0000 (19:15 +0000)
committerjasper <jasper@openbsd.org>
Mon, 13 Nov 2023 19:15:01 +0000 (19:15 +0000)
ok mlarkin@

sys/arch/amd64/amd64/vmm_machdep.c

index 8cf5166..b3dc291 100644 (file)
@@ -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 <mlarkin@openbsd.org>
  *
@@ -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);
        }