[Bug 3253] New: uefi-sct: print format mismatch in SimpleTextOutput test


bugzilla-daemon@...
 

https://bugzilla.tianocore.org/show_bug.cgi?id=3253

Bug ID: 3253
Summary: uefi-sct: print format mismatch in SimpleTextOutput
test
Product: EDK2 Test
Version: Current
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Lowest
Component: UEFI-SCT
Assignee: unassigned@tianocore.org
Reporter: xypron.glpk@gmx.de
CC: edk2+bugs+int+994+563148131503455288@groups.io

SctPrint() requires that %d refers to an UINTN parameter.

uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleTextOut/BlackBoxTest/SimpleTextOutBBTestFunction_uefi.c
has a lot of StandardLib->RecordAssertion() calls where an INT32 is passed as
argument for a '%d' print code.

This leads to incorrect output like:

MaxMode=-549755813885,

-549755813885 is 0x0xFFFFFF8000000003. So MaxMode is actually an INT32 with
value 3.

Best regards

Heinrich Schuchardt

--
You are receiving this mail because:
You are on the CC list for the bug.