BaseUefiImageLib: Fix segment logging

This commit is contained in:
Marvin Häuser 2023-04-30 13:17:08 +02:00 committed by Mikhail Krichanov
parent 2304aa1fd3
commit 4a02e8a807
2 changed files with 11 additions and 8 deletions

View File

@ -239,7 +239,7 @@ UefiImageDebugPrintImageRecord (
DEBUG (( DEBUG ((
DEBUG_VERBOSE, DEBUG_VERBOSE,
" RecordSegment\n" " RecordSegment\n"
" Address - 0x%16xll\n" " Address - 0x%016llx\n"
" Size - 0x%08x\n" " Size - 0x%08x\n"
" Attributes - 0x%08x\n", " Attributes - 0x%08x\n",
(UINT64) SegmentAddress, (UINT64) SegmentAddress,

View File

@ -480,21 +480,24 @@ UefiImageDebugPrintSegmentsPeCoff (
Name = Sections[SectionIndex].Name; Name = Sections[SectionIndex].Name;
DEBUG (( DEBUG ((
DEBUG_VERBOSE, DEBUG_VERBOSE,
" Section - '%c%c%c%c%c%c%c%c'\n", " Section - '%c%c%c%c%c%c%c%c'\n"
" VirtualSize - 0x%08x\n" " VirtualSize - 0x%08x\n"
" VirtualAddress - 0x%08x\n" " VirtualAddress - 0x%08x\n"
" SizeOfRawData - 0x%08x\n" " SizeOfRawData - 0x%08x\n"
" PointerToRawData - 0x%08x\n" " PointerToRawData - 0x%08x\n",
Name[0], Name[1], Name[2], Name[3], Name[4], Name[5], Name[6], Name[7],
Sections[SectionIndex].VirtualSize,
Sections[SectionIndex].VirtualAddress,
Sections[SectionIndex].SizeOfRawData,
Sections[SectionIndex].PointerToRawData
));
DEBUG ((
DEBUG_VERBOSE,
" PointerToRelocations - 0x%08x\n" " PointerToRelocations - 0x%08x\n"
" PointerToLinenumbers - 0x%08x\n" " PointerToLinenumbers - 0x%08x\n"
" NumberOfRelocations - 0x%08x\n" " NumberOfRelocations - 0x%08x\n"
" NumberOfLinenumbers - 0x%08x\n" " NumberOfLinenumbers - 0x%08x\n"
" Characteristics - 0x%08x\n", " Characteristics - 0x%08x\n",
Name[0], Name[1], Name[2], Name[3], Name[4], Name[5], Name[6], Name[7],
Sections[SectionIndex].VirtualSize,
Sections[SectionIndex].VirtualAddress,
Sections[SectionIndex].SizeOfRawData,
Sections[SectionIndex].PointerToRawData,
Sections[SectionIndex].PointerToRelocations, Sections[SectionIndex].PointerToRelocations,
Sections[SectionIndex].PointerToLinenumbers, Sections[SectionIndex].PointerToLinenumbers,
Sections[SectionIndex].NumberOfRelocations, Sections[SectionIndex].NumberOfRelocations,