summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeahy, Leroy P <leroy.p.leahy@intel.com>2016-02-24 18:55:51 -0800
committerPrince Agyeman <prince.agyeman@intel.com>2016-02-26 10:02:41 -0800
commitd1986e756667183ba72f4122ee460dcc7f36d140 (patch)
treeab4ecd76397ce437c6a2904e0f8efaa3d0c629d9
parent79f4f6f0c99c2cc8b03304d0fec9bd657b313312 (diff)
downloadedk2-d1986e756667183ba72f4122ee460dcc7f36d140.tar.gz
edk2-d1986e756667183ba72f4122ee460dcc7f36d140.tar.bz2
edk2-d1986e756667183ba72f4122ee460dcc7f36d140.zip
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>
-rw-r--r--CorebootModulePkg/Library/CbParseLib/CbParseLib.c3
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;
}
}