diff options
author | Leahy, Leroy P <leroy.p.leahy@intel.com> | 2016-02-24 18:55:51 -0800 |
---|---|---|
committer | Prince Agyeman <prince.agyeman@intel.com> | 2016-02-26 10:02:41 -0800 |
commit | d1986e756667183ba72f4122ee460dcc7f36d140 (patch) | |
tree | ab4ecd76397ce437c6a2904e0f8efaa3d0c629d9 /CorebootModulePkg/Library | |
parent | 79f4f6f0c99c2cc8b03304d0fec9bd657b313312 (diff) | |
download | edk2-platforms-d1986e756667183ba72f4122ee460dcc7f36d140.tar.xz |
CorebootModulePkg-CbParseLib: Fix bad reference in CbParseLib
Dereferencing pMemTableSize in debug statement displays bad values when
it is set to NULL. Display the actual table size value instead.
TEST=Build and run on Galileo Gen2
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Prince Agyeman <prince.agyeman@intel.com>
Diffstat (limited to 'CorebootModulePkg/Library')
-rw-r--r-- | CorebootModulePkg/Library/CbParseLib/CbParseLib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CorebootModulePkg/Library/CbParseLib/CbParseLib.c b/CorebootModulePkg/Library/CbParseLib/CbParseLib.c index d9717f4210..377abf3c67 100644 --- a/CorebootModulePkg/Library/CbParseLib/CbParseLib.c +++ b/CorebootModulePkg/Library/CbParseLib/CbParseLib.c @@ -216,7 +216,8 @@ FindCbMemTable ( *pMemTableSize = Entries[Idx].size;
}
- DEBUG ((EFI_D_INFO, "Find CbMemTable Id 0x%x, base %p, size 0x%x\n", TableId, *pMemTable, *pMemTableSize));
+ DEBUG ((EFI_D_INFO, "Find CbMemTable Id 0x%x, base %p, size 0x%x\n", + TableId, *pMemTable, Entries[Idx].size)); return RETURN_SUCCESS;
}
}
|