Skip to content

Commit

Permalink
Fixed error message grammar
Browse files Browse the repository at this point in the history
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1308 7335b38e-4728-0410-8992-fb3ffe349368
  • Loading branch information
lhauch committed Aug 26, 2008
1 parent d661d6c commit 782705f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Python/GenFds/Region.py
Expand Up @@ -83,7 +83,7 @@ def AddToBuffer(self, Buffer, BaseAddress, BlockSizeList, ErasePolarity, FvBinDi
FvBuffer.write(BinFile.read())
if FvBuffer.len > Size:
EdkLogger.error("GenFds", GENFDS_ERROR,
"Size of FV File (%s) is larger than Region Size 0x%X" \
"Size of FV File (%s) is larger than Region Size 0x%X specified." \
% (RegionData, Size))
break

Expand Down Expand Up @@ -116,7 +116,7 @@ def AddToBuffer(self, Buffer, BaseAddress, BlockSizeList, ErasePolarity, FvBinDi

if FvBuffer.len > Size:
EdkLogger.error("GenFds", GENFDS_ERROR,
"Size of FV (%s) is larger than Region Size 0x%X" % (RegionData, Size))
"Size of FV (%s) is larger than Region Size 0x%X specified." % (RegionData, Size))
else:
EdkLogger.error("GenFds", GENFDS_ERROR, "FV (%s) is NOT described in FDF file!" % (RegionData))

Expand Down Expand Up @@ -164,7 +164,7 @@ def AddToBuffer(self, Buffer, BaseAddress, BlockSizeList, ErasePolarity, FvBinDi
Data = RegionData.split(',')
DataSize = DataSize + len(Data)
if DataSize > Size:
EdkLogger.error("GenFds", GENFDS_ERROR, "Size of DATA large than Region Size ")
EdkLogger.error("GenFds", GENFDS_ERROR, "Size of DATA is larger than Region Size ")
else:
for item in Data :
Buffer.write(pack('B', int(item, 16)))
Expand Down Expand Up @@ -233,7 +233,7 @@ def BlockSizeOfRegion(self, BlockSizeList):
#
def BlockNumOfRegion (self, BlockSize):
if BlockSize == 0 :
EdkLogger.error("GenFds", GENFDS_ERROR, "Region: %s doesn't in Fd address scope !" % self.Offset)
EdkLogger.error("GenFds", GENFDS_ERROR, "Region: %s is not in the FD address scope!" % self.Offset)
BlockNum = self.Size / BlockSize
GenFdsGlobalVariable.VerboseLogger ("BlockNum = 0x%X" %BlockNum)
return BlockNum
Expand Down

0 comments on commit 782705f

Please sign in to comment.