Skip to content

Commit f719985

Browse files
committed
UefiCpuPkg/CpuDxe: DEBUG_VERBOSE -> DEBUG_PAGING
Use new DEBUG_PAGING log bit in UefiCpuPkg/CpuDxe. Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent 3892103 commit f719985

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

UefiCpuPkg/CpuDxe/CpuPageTable.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ ConvertPageEntryAttribute (
495495
*PageEntry = NewPageEntry;
496496
if (CurrentPageEntry != NewPageEntry) {
497497
*IsModified = TRUE;
498-
DEBUG ((DEBUG_VERBOSE, "ConvertPageEntryAttribute 0x%lx", CurrentPageEntry));
499-
DEBUG ((DEBUG_VERBOSE, "->0x%lx\n", NewPageEntry));
498+
DEBUG ((DEBUG_PAGING, "ConvertPageEntryAttribute 0x%lx", CurrentPageEntry));
499+
DEBUG ((DEBUG_PAGING, "->0x%lx\n", NewPageEntry));
500500
} else {
501501
*IsModified = FALSE;
502502
}
@@ -575,7 +575,7 @@ SplitPage (
575575
ASSERT (SplitAttribute == Page4K);
576576
if (SplitAttribute == Page4K) {
577577
NewPageEntry = AllocatePagesFunc (1);
578-
DEBUG ((DEBUG_VERBOSE, "Split - 0x%x\n", NewPageEntry));
578+
DEBUG ((DEBUG_PAGING, "Split - 0x%x\n", NewPageEntry));
579579
if (NewPageEntry == NULL) {
580580
return RETURN_OUT_OF_RESOURCES;
581581
}
@@ -598,7 +598,7 @@ SplitPage (
598598
ASSERT (SplitAttribute == Page2M || SplitAttribute == Page4K);
599599
if (((SplitAttribute == Page2M) || (SplitAttribute == Page4K))) {
600600
NewPageEntry = AllocatePagesFunc (1);
601-
DEBUG ((DEBUG_VERBOSE, "Split - 0x%x\n", NewPageEntry));
601+
DEBUG ((DEBUG_PAGING, "Split - 0x%x\n", NewPageEntry));
602602
if (NewPageEntry == NULL) {
603603
return RETURN_OUT_OF_RESOURCES;
604604
}
@@ -1085,7 +1085,7 @@ RefreshGcdMemoryAttributesFromPaging (
10851085
);
10861086
ASSERT_EFI_ERROR (Status);
10871087
DEBUG ((
1088-
DEBUG_VERBOSE,
1088+
DEBUG_PAGING,
10891089
"Updated memory space attribute: [%lu] %016lx - %016lx (%016lx -> %016lx)\r\n",
10901090
(UINT64)Index,
10911091
BaseAddress,
@@ -1487,7 +1487,7 @@ EfiSetMemoryAttributes (
14871487
BOOLEAN IsModified;
14881488
BOOLEAN IsSplitted;
14891489

1490-
DEBUG ((DEBUG_VERBOSE, "%a: 0x%lx - 0x%lx (0x%lx)\n", __func__, BaseAddress, Length, Attributes));
1490+
DEBUG ((DEBUG_PAGING, "%a: 0x%lx - 0x%lx (0x%lx)\n", __func__, BaseAddress, Length, Attributes));
14911491

14921492
if (Attributes == 0) {
14931493
DEBUG ((DEBUG_ERROR, "%a: Error - Attributes == 0\n", __func__));
@@ -1563,7 +1563,7 @@ EfiClearMemoryAttributes (
15631563
BOOLEAN IsModified;
15641564
BOOLEAN IsSplitted;
15651565

1566-
DEBUG ((DEBUG_VERBOSE, "%a: 0x%lx - 0x%lx (0x%lx)\n", __func__, BaseAddress, Length, Attributes));
1566+
DEBUG ((DEBUG_PAGING, "%a: 0x%lx - 0x%lx (0x%lx)\n", __func__, BaseAddress, Length, Attributes));
15671567

15681568
if (Attributes == 0) {
15691569
DEBUG ((DEBUG_ERROR, "%a: Error - Attributes == 0\n", __func__));
@@ -1708,7 +1708,7 @@ EfiGetMemoryAttributes (
17081708
MemAttr = *Attributes;
17091709
} while (Size > 0);
17101710

1711-
DEBUG ((DEBUG_VERBOSE, "%a: Attributes is 0x%lx\n", __func__, *Attributes));
1711+
DEBUG ((DEBUG_PAGING, "%a: Attributes is 0x%lx\n", __func__, *Attributes));
17121712

17131713
return EFI_SUCCESS;
17141714
}

0 commit comments

Comments
 (0)