svn commit: r310195 - stable/11/sys/x86/acpica

Konstantin Belousov kib at FreeBSD.org
Sun Dec 18 00:39:05 UTC 2016


Author: kib
Date: Sun Dec 18 00:39:04 2016
New Revision: 310195
URL: https://svnweb.freebsd.org/changeset/base/310195

Log:
  MFC r309854:
  Prefix hex memory addresses with 0x in diagnostic messages from the
  SRAT parser.

Modified:
  stable/11/sys/x86/acpica/srat.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/x86/acpica/srat.c
==============================================================================
--- stable/11/sys/x86/acpica/srat.c	Sat Dec 17 22:34:19 2016	(r310194)
+++ stable/11/sys/x86/acpica/srat.c	Sun Dec 18 00:39:04 2016	(r310195)
@@ -228,7 +228,7 @@ srat_parse_entry(ACPI_SUBTABLE_HEADER *e
 		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) ?
@@ -237,7 +237,7 @@ srat_parse_entry(ACPI_SUBTABLE_HEADER *e
 			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;
 		}
@@ -334,7 +334,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);
 }


More information about the svn-src-stable-11 mailing list