git: 50e1cc94a138 - main - arm64: Make a debug print conditional on bootverbose
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Jun 2023 16:39:44 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=50e1cc94a138f8886588eabe0b849b487d9925a3
commit 50e1cc94a138f8886588eabe0b849b487d9925a3
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-06-15 16:13:05 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-06-15 16:39:27 +0000
arm64: Make a debug print conditional on bootverbose
It doesn't seem particularly useful to have it enabled by default, and
it spits several dozen lines into the dmesg on a test system.
Reviewed by: andrew
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D40499
---
sys/arm64/arm64/efirt_machdep.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sys/arm64/arm64/efirt_machdep.c b/sys/arm64/arm64/efirt_machdep.c
index 9f13dea5b698..37248e53d87b 100644
--- a/sys/arm64/arm64/efirt_machdep.c
+++ b/sys/arm64/arm64/efirt_machdep.c
@@ -220,7 +220,10 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz)
else
mode = VM_MEMATTR_DEVICE;
- printf("MAP %lx mode %x pages %lu\n", p->md_phys, mode, p->md_pages);
+ if (bootverbose) {
+ printf("MAP %lx mode %x pages %lu\n",
+ p->md_phys, mode, p->md_pages);
+ }
l3_attr = ATTR_DEFAULT | ATTR_S1_IDX(mode) |
ATTR_S1_AP(ATTR_S1_AP_RW) | ATTR_S1_nG | L3_PAGE;