mirror of
https://github.com/ipxe/ipxe
synced 2026-01-24 04:59:13 +03:00
[memmap] Allow explicit colour selection for memory map debug messages
Provide DBGC_MEMMAP() as a replacement for memmap_dump(), allowing the colour used to match other messages within the same message group. Retain a dedicated colour for output from memmap_dump_all(), on the basis that it is generally most useful to visually compare full memory dumps against previous full memory dumps. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -80,7 +80,7 @@ __asmcall void relocate ( struct i386_all_regs *ix86 ) {
|
||||
* away with using just 32-bit arithmetic after this
|
||||
* stage.
|
||||
*/
|
||||
memmap_dump ( ®ion );
|
||||
DBGC_MEMMAP ( ®ion, ®ion );
|
||||
if ( region.min > max ) {
|
||||
DBGC ( ®ion, "...starts after max=%#08lx\n", max );
|
||||
break;
|
||||
|
||||
@@ -120,7 +120,7 @@ static void multiboot_build_memmap ( struct image *image,
|
||||
/* Ignore any non-memory regions */
|
||||
if ( ! ( region.flags & MEMMAP_FL_MEMORY ) )
|
||||
continue;
|
||||
memmap_dump ( ®ion );
|
||||
DBGC_MEMMAP ( image, ®ion );
|
||||
|
||||
/* Check Multiboot memory map limit */
|
||||
if ( ! remaining ) {
|
||||
|
||||
Reference in New Issue
Block a user