Put printing the EFI memory map behind and #ifdef.
authorkettenis <kettenis@openbsd.org>
Mon, 29 Aug 2022 17:13:57 +0000 (17:13 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 29 Aug 2022 17:13:57 +0000 (17:13 +0000)
ok deraadt@

sys/arch/arm64/arm64/machdep.c

index 785d3d4..baa6c2c 100644 (file)
@@ -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 <patrick@blueri.se>
  * Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
@@ -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) &&