From: kettenis Date: Mon, 29 Aug 2022 17:13:57 +0000 (+0000) Subject: Put printing the EFI memory map behind and #ifdef. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b416c119d5a33f876c90a1006040ec9161177d3f;p=openbsd Put printing the EFI memory map behind and #ifdef. ok deraadt@ --- diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c index 785d3d484d5..baa6c2c7d22 100644 --- a/sys/arch/arm64/arm64/machdep.c +++ b/sys/arch/arm64/arm64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.70 2022/07/27 21:01:38 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.71 2022/08/29 17:13:57 kettenis Exp $ */ /* * Copyright (c) 2014 Patrick Wildt * Copyright (c) 2021 Mark Kettenis @@ -968,10 +968,12 @@ initarm(struct arm64_bootparams *abp) * EfiLoaderData so it won't be added here. */ for (i = 0; i < mmap_size / mmap_desc_size; i++) { +#ifdef MMAP_DEBUG printf("type 0x%x pa 0x%llx va 0x%llx pages 0x%llx attr 0x%llx\n", desc->Type, desc->PhysicalStart, desc->VirtualStart, desc->NumberOfPages, desc->Attribute); +#endif if ((desc->Type == EfiConventionalMemory || desc->Type == EfiBootServicesCode || desc->Type == EfiBootServicesData) &&