Prefix hex memory addresses with 0x in diagnostic messages from the
SRAT parser. Submitted by: Oliver Pinter MFC after: 1 week Differential revision: https://reviews.freebsd.org/D8750
This commit is contained in:
parent
ef06a176eb
commit
5ab0f0c3f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309854
@ -229,7 +229,7 @@ srat_parse_entry(ACPI_SUBTABLE_HEADER *entry, void *arg)
|
||||
mem = (ACPI_SRAT_MEM_AFFINITY *)entry;
|
||||
if (bootverbose)
|
||||
printf(
|
||||
"SRAT: Found memory domain %d addr %jx len %jx: %s\n",
|
||||
"SRAT: Found memory domain %d addr 0x%jx len 0x%jx: %s\n",
|
||||
mem->ProximityDomain, (uintmax_t)mem->BaseAddress,
|
||||
(uintmax_t)mem->Length,
|
||||
(mem->Flags & ACPI_SRAT_MEM_ENABLED) ?
|
||||
@ -238,7 +238,7 @@ srat_parse_entry(ACPI_SUBTABLE_HEADER *entry, void *arg)
|
||||
break;
|
||||
if (!overlaps_phys_avail(mem->BaseAddress,
|
||||
mem->BaseAddress + mem->Length)) {
|
||||
printf("SRAT: Ignoring memory at addr %jx\n",
|
||||
printf("SRAT: Ignoring memory at addr 0x%jx\n",
|
||||
(uintmax_t)mem->BaseAddress);
|
||||
break;
|
||||
}
|
||||
@ -335,7 +335,7 @@ check_phys_avail(void)
|
||||
address = mem_info[i].end + 1;
|
||||
}
|
||||
}
|
||||
printf("SRAT: No memory region found for %jx - %jx\n",
|
||||
printf("SRAT: No memory region found for 0x%jx - 0x%jx\n",
|
||||
(uintmax_t)phys_avail[j], (uintmax_t)phys_avail[j + 1]);
|
||||
return (ENXIO);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user