From bd7c73ba7706d82a974799aac39e48e05dccd169 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 9 Jun 2020 10:16:05 +0200 Subject: StandaloneMmPkg/Core: fix bogus FV pointer in DEBUG string FvIsBeingProcessed () emits a DEBUG print with the intent to print the memory address of the FV that is being processed, but instead, it prints the contents of an uninitialized stack variable. Signed-off-by: Ard Biesheuvel Reviewed-by: Jiewen Yao Reviewed-by: Sami Mujawar Tested-by: Ilias Apalodimas --- StandaloneMmPkg/Core/Dispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'StandaloneMmPkg') diff --git a/StandaloneMmPkg/Core/Dispatcher.c b/StandaloneMmPkg/Core/Dispatcher.c index 2f795d01dc..c99e6c04c8 100644 --- a/StandaloneMmPkg/Core/Dispatcher.c +++ b/StandaloneMmPkg/Core/Dispatcher.c @@ -816,7 +816,7 @@ FvIsBeingProcessed ( { KNOWN_FWVOL *KnownFwVol; - DEBUG ((DEBUG_INFO, "FvIsBeingProcessed - 0x%08x\n", KnownFwVol)); + DEBUG ((DEBUG_INFO, "FvIsBeingProcessed - 0x%08x\n", FwVolHeader)); KnownFwVol = AllocatePool (sizeof (KNOWN_FWVOL)); ASSERT (KnownFwVol != NULL); -- cgit v1.2.3