summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-01 22:41:57 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-01 22:41:57 +0000
commit1ca88083d42d1284ac7547cbed6699777c490241 (patch)
tree6ef50f473771556338e791dcc4b91a222220dac4 /IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode
parentb088ba369e11932d964f3ece1efc63c0019c6c2d (diff)
Increase source portability by replace the use of EFI_STATUS_CODE_DATA_MAX_SIZE with sizeof(Buffer)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8435 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode')
-rw-r--r--IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c b/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
index fd77f7f90..8000df7e7 100644
--- a/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
+++ b/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
@@ -78,12 +78,12 @@ DebugPrint (
//
// If the TotalSize is larger than the maximum record size, then ASSERT()
//
- ASSERT (TotalSize <= EFI_STATUS_CODE_DATA_MAX_SIZE);
+ ASSERT (TotalSize <= sizeof (Buffer));
//
// If the TotalSize is larger than the maximum record size, then return
//
- if (TotalSize > EFI_STATUS_CODE_DATA_MAX_SIZE) {
+ if (TotalSize > sizeof (Buffer)) {
return;
}
@@ -259,7 +259,7 @@ DebugAssert (
FileNameLength = AsciiStrLen (FileName);
DescriptionLength = AsciiStrLen (Description);
TotalSize = sizeof (EFI_DEBUG_ASSERT_DATA) + FileNameLength + 1 + DescriptionLength + 1;
- if (TotalSize <= EFI_STATUS_CODE_DATA_MAX_SIZE) {
+ if (TotalSize <= sizeof (Buffer)) {
//
// Fill in EFI_DEBUG_ASSERT_DATA
//