Port-amd64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Remove debug messages from uefiboot
Hi folks,
I am trying to get my boot process as silent as possible and ran into strange
(debug?) output from uefiboot. It displays the EFI memory map, befor it
clears the screen and shows the boot menu. This is not exactly helpfull
unless you are debugging uefiboot - so I made it a debug option.
OK to commit?
Martin
Index: Makefile.efiboot
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/stand/efiboot/Makefile.efiboot,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile.efiboot
--- Makefile.efiboot 29 Jun 2024 07:52:16 -0000 1.23
+++ Makefile.efiboot 27 Nov 2024 17:20:00 -0000
@@ -73,6 +73,7 @@ CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
#CPPFLAGS+= -DARP_DEBUG
#CPPFLAGS+= -DBOOTP_DEBUG
+#CPPFLAGS+= -DMEM_DEBUG
#CPPFLAGS+= -DNET_DEBUG
#CPPFLAGS+= -DNETIF_DEBUG
#CPPFLAGS+= -DNFS_DEBUG
Index: efiboot.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/stand/efiboot/efiboot.c,v
retrieving revision 1.13
diff -u -p -r1.13 efiboot.c
--- efiboot.c 20 Apr 2023 00:42:24 -0000 1.13
+++ efiboot.c 27 Nov 2024 17:20:00 -0000
@@ -91,7 +91,9 @@ efi_main(EFI_HANDLE imageHandle, EFI_SYS
}
}
+#ifdef MEM_DEBUG
efi_memory_probe();
+#endif
efi_disk_probe();
efi_pxe_probe();
efi_net_probe();
Index: efiboot.h
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/stand/efiboot/efiboot.h,v
retrieving revision 1.12
diff -u -p -r1.12 efiboot.h
--- efiboot.h 20 Apr 2023 00:42:24 -0000 1.12
+++ efiboot.h 27 Nov 2024 17:20:00 -0000
@@ -84,8 +84,9 @@ void efi_disk_probe(void);
void efi_disk_show(void);
/* efimemory.c */
+#ifdef MEM_DEBUG
void efi_memory_probe(void);
-void efi_memory_probe_reloc(EFI_PHYSICAL_ADDRESS, EFI_PHYSICAL_ADDRESS, bool);
+#endif
void efi_memory_show_map(bool, bool);
EFI_MEMORY_DESCRIPTOR *efi_memory_get_map(UINTN *, UINTN *, UINTN *, UINT32 *,
bool);
Index: efimemory.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/stand/efiboot/efimemory.c,v
retrieving revision 1.10
diff -u -p -r1.10 efimemory.c
--- efimemory.c 14 May 2023 09:07:54 -0000 1.10
+++ efimemory.c 27 Nov 2024 17:20:00 -0000
@@ -325,6 +325,7 @@ getextmemx(void)
return extmem;
}
+#ifdef MEM_DEBUG
void
efi_memory_probe(void)
{
@@ -365,6 +366,7 @@ efi_memory_probe(void)
FreePool(mdtop);
}
+#endif
void
efi_memory_show_map(bool sorted, bool compact)
Home |
Main Index |
Thread Index |
Old Index