From 1ca88083d42d1284ac7547cbed6699777c490241 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Mon, 1 Jun 2009 22:41:57 +0000 Subject: 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 --- .../Library/PeiDxeDebugLibReportStatusCode/DebugLib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'IntelFrameworkModulePkg/Library') diff --git a/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c b/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c index fd77f7f904..8000df7e77 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 // -- cgit v1.2.3