From d1986e756667183ba72f4122ee460dcc7f36d140 Mon Sep 17 00:00:00 2001 From: "Leahy, Leroy P" Date: Wed, 24 Feb 2016 18:55:51 -0800 Subject: 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 Reviewed-by: Erik Bjorge Reviewed-by: Prince Agyeman --- CorebootModulePkg/Library/CbParseLib/CbParseLib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CorebootModulePkg') diff --git a/CorebootModulePkg/Library/CbParseLib/CbParseLib.c b/CorebootModulePkg/Library/CbParseLib/CbParseLib.c index d9717f4..377abf3 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; } } -- cgit v1.1