From ff34f919ebb204f5b5d2b508224aa1161b4cda85 Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 26 Jan 2024 19:23:03 +0000 Subject: [PATCH] Fix panic messages. --- sys/arch/arm64/arm64/pmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c index 543c7ff1a71..2b7f2bd946c 100644 --- a/sys/arch/arm64/arm64/pmap.c +++ b/sys/arch/arm64/arm64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.100 2023/12/11 22:12:53 kettenis Exp $ */ +/* $OpenBSD: pmap.c,v 1.101 2024/01/26 19:23:03 kettenis Exp $ */ /* * Copyright (c) 2008-2009,2014-2016 Dale Rahn * @@ -792,7 +792,7 @@ pmap_fill_pte(pmap_t pm, vaddr_t va, paddr_t pa, struct pte_desc *pted, case PMAP_CACHE_DEV_NGNRE: break; default: - panic("pmap_fill_pte:invalid cache mode"); + panic("%s: invalid cache mode", __func__); } pted->pted_va |= cache; @@ -1682,7 +1682,7 @@ pmap_pte_update(struct pte_desc *pted, uint64_t *pl3) attr |= ATTR_SH(SH_INNER); break; default: - panic("pmap_pte_insert: invalid cache mode"); + panic("%s: invalid cache mode", __func__); } if (pm->pm_privileged) -- 2.20.1