Fixed grammar in messages.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1255 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lhauch 2006-08-14 17:19:24 +00:00
parent 32a47954e2
commit 3f7b510edb
16 changed files with 36 additions and 34 deletions

View File

@ -121,7 +121,7 @@ public class CreateMtFileTask extends Task implements EfiDefine {
//
// command execution fail
//
EdkLog.log(EdkLog.EDK_INFO, "ERROR = "+ Integer.toHexString(revl));
EdkLog.log(EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl));
throw new BuildException("CreateMtFile failed!");
}
} catch (Exception e) {

View File

@ -119,7 +119,7 @@ public class EfiCompressTask extends Task implements EfiDefine {
// command execution fail
//
EdkLog.log(EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl));
throw new BuildException("Strip failed!");
throw new BuildException("EfiCompress failed!");
}
} catch (Exception e) {

View File

@ -52,7 +52,7 @@ public class FfsHeader {
**/
public void bufferToStruct (byte[] dataBuffer){
if (dataBuffer.length != 16) {
throw new BuildException ("Buffer is not fitting GUID type!");
throw new BuildException ("Buffer is not sized [" + dataBuffer.length + "] for data type, GUID!");
}
data1 = (int)(dataBuffer[3]& 0xff);

View File

@ -46,7 +46,7 @@ public class FileParser {
String str;
if (!file.exists()) {
throw new BuildException("The file" + file + "is not exist");
throw new BuildException("The file, " + file + " does not exist!");
}
try {
fileReader = new FileReader(file);

View File

@ -102,13 +102,13 @@ public class FwImageTask extends Task implements EfiDefine{
log(this.peImageName);
revl = runner.execute();
if (EFI_SUCCESS == revl) {
log("fwimage succeeded!", Project.MSG_VERBOSE);
log("FwImage succeeded!", Project.MSG_VERBOSE);
} else {
//
// command execution fail
//
log("ERROR = " + Integer.toHexString(revl));
throw new BuildException("fwimage failed!");
throw new BuildException("FwImage failed!");
}
} catch (Exception e) {
throw new BuildException(e.getMessage());

View File

@ -96,12 +96,14 @@ public class GenCRC32SectionTask extends Task implements EfiDefine{
//
// command execution success
//
log("gencrc32section succeeded!", Project.MSG_VERBOSE);
log("GenCRC32Section succeeded!", Project.MSG_VERBOSE);
} else {
//
// command execution fail
//
log("ERROR = " + Integer.toHexString(revl));
// LAH Added This Line
throw new BuildException("GenCRC32Section failed!");
}
} catch (Exception e) {
throw new BuildException(e.getMessage());

View File

@ -142,7 +142,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
// Check does the BaseName, Guid, FileType set value.
//
if (this.baseName.equals("")) {
throw new BuildException ("Must set BaseName!\n");
throw new BuildException ("Must set OutputFileBasename!\n");
}
if (this.ffsFileGuid.equals("")) {
@ -296,7 +296,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
if (fileSize == ffsHeader.getSize()) {
throw new BuildException (
"FFS_ATTRIB_TAIL_PRESENT=TRUE is " +
"invalid for 0-length files"
"invalid for zero length files"
);
}
fileSize = fileSize + 2;
@ -503,7 +503,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
public void setFfsAttribDataAlignment(String ffsAligment) {
this.ffsAttribDataAlignment = stringToInt(ffsAligment.replaceAll(" ", "").toLowerCase());
if (this.ffsAttribDataAlignment < 0 || this.ffsAttribDataAlignment > 7) {
throw new BuildException ("FFS_ATTRIB_DATA_ALIGMENT must be 0-7");
throw new BuildException ("FFS_ATTRIB_DATA_ALIGMENT must be an integer value from 0 through 7, inclusive");
} else {
attributes |= (((byte)this.ffsAttribDataAlignment) << 3);
}
@ -664,13 +664,13 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
byte[] buffer = new byte[16];
if (GuidStr.length()!=36) {
throw new BuildException ("Guid length is not correct!");
throw new BuildException ("The GUID length [" + GuidStr.length() + "] is not correct!");
}
SplitStr = GuidStr.split("-");
if (SplitStr.length != 5) {
throw new BuildException ("Guid type is not correct!");
throw new BuildException ("The GUID format is not correct!");
}
@ -974,7 +974,7 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
try {
value = Integer.parseInt(intStringNoPrefix, radix);
} catch (NumberFormatException e) {
log("Incorrect format of int (" + intString + "). -1 is assumed");
log("Incorrect format of int [" + intString + "]. -1 is assumed");
return -1;
}

View File

@ -97,13 +97,13 @@ public class GenSectionTask extends Task implements EfiDefine {
log(Commandline.toString(cmdline.getCommandline()), Project.MSG_VERBOSE);
revl = runner.execute();
if (EFI_SUCCESS == revl) {
log("gensection succeeded!", Project.MSG_VERBOSE);
log("GenSection succeeded!", Project.MSG_VERBOSE);
} else {
//
// command execution fail
//
log("ERROR = " + Integer.toHexString(revl));
throw new BuildException("gensection failed!");
throw new BuildException("GenSection failed!");
}
} catch (Exception e) {
throw new BuildException(e.getMessage());

View File

@ -187,7 +187,7 @@ public class MakeDeps extends Task {
// change the old DEP file format (makefile compatible) to just file list
if (!cleanup()) {
throw new BuildException(depsFile + " was not generated");
throw new BuildException(depsFile + " was not generated!");
}
}

View File

@ -71,7 +71,7 @@ public class ModifyInfTask extends Task implements EfiDefine {
//
// set Logger
//
FrameworkLogger logger = new FrameworkLogger(project, "modifytask");
FrameworkLogger logger = new FrameworkLogger(project, "modifyinftask");
EdkLog.setLogLevel(project.getProperty("env.LOGLEVEL"));
EdkLog.setLogger(logger);
//

View File

@ -67,7 +67,7 @@ public class SectFile implements Section {
/// check if file exist.
///
if (! sectFile.exists()) {
throw new BuildException("The file " + this.fileName + " is not exist!\n");
throw new BuildException("The file " + this.fileName + " does not exist!\n");
}
@ -110,7 +110,7 @@ public class SectFile implements Section {
} catch (Exception e) {
System.out.print(e.getMessage());
throw new BuildException("section file2Buffer failed!\n");
throw new BuildException("SectFile, toBuffer failed!\n");
}
}
}

View File

@ -105,13 +105,13 @@ public class SplitfileTask extends Task implements EfiDefine {
//
// command execution success
//
EdkLog.log(EdkLog.EDK_VERBOSE, "splitfile succeeded!");
EdkLog.log(EdkLog.EDK_VERBOSE, "SplitFile succeeded!");
} else {
//
// command execution fail
//
EdkLog.log(EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl));
throw new BuildException("splitfile failed!");
throw new BuildException("SplitFile failed!");
}
} catch (Exception e) {
throw new BuildException(e.getMessage());

View File

@ -153,13 +153,13 @@ public class StrGatherTask extends Task implements EfiDefine {
log(this.commandType.substring(2));
revl = runner.execute();
if (EFI_SUCCESS == revl) {
log("strgather succeeded!", Project.MSG_VERBOSE);
log("StrGather succeeded!", Project.MSG_VERBOSE);
} else {
///
/// command execution fail
///
log("ERROR = " + Integer.toHexString(revl));
throw new BuildException("strgather failed!");
throw new BuildException("StrGather failed!");
}
} catch (Exception e) {
throw new BuildException(e.getMessage());

View File

@ -62,7 +62,7 @@ public class StripTask extends Task implements EfiDefine {
//
// set Logger
//
FrameworkLogger logger = new FrameworkLogger(project, "edkStrip");
FrameworkLogger logger = new FrameworkLogger(project, "strip");
EdkLog.setLogLevel(project.getProperty("env.LOGLEVEL"));
EdkLog.setLogger(logger);
//
@ -72,7 +72,7 @@ public class StripTask extends Task implements EfiDefine {
String command;
String argument;
if (path == null) {
command = "strip";
command = "Strip";
} else {
command = path + File.separatorChar + "Strip";
}

View File

@ -49,7 +49,7 @@ public class Tool implements EfiDefine, Section {
try {
executeTool ();
} catch (Exception e) {
throw new BuildException("Call tools failed!\n");
throw new BuildException("Call to executeTool failed!\n");
}
///
@ -58,7 +58,7 @@ public class Tool implements EfiDefine, Section {
OutputFile = new File (this.outPutFileName);
long fileLen = OutputFile.length();
if (!OutputFile.exists()) {
throw new BuildException("The file " + outPutFileName + " is not exist!\n");
throw new BuildException("The file " + outPutFileName + " does not exist!\n");
}
///
@ -91,7 +91,7 @@ public class Tool implements EfiDefine, Section {
} catch (Exception e) {
System.out.print(e.getMessage());
throw new BuildException("Call tool2buffer failed!\n");
throw new BuildException("Tool call, toBuffer failed!\n");
}
}
@ -137,7 +137,7 @@ public class Tool implements EfiDefine, Section {
crcProcess.waitFor();
} catch (Exception e) {
System.out.print (e.getMessage());
throw new BuildException("Execute tools fails!\n");
throw new BuildException("Execution of externalTool task failed!\n");
}
}

View File

@ -210,10 +210,10 @@ public class VfrCompilerTask extends Task implements EfiDefine {
log(vfrFileName);
int returnVal = runner.execute();
if (EFI_SUCCESS == returnVal) {
log("VfrCompiler succeeded!", Project.MSG_VERBOSE);
log("VfrCompile succeeded!", Project.MSG_VERBOSE);
} else {
log("ERROR = " + Integer.toHexString(returnVal));
throw new BuildException("VfrCompiler failed!");
throw new BuildException("VfrCompile failed!");
}
} catch (IOException e) {
throw new BuildException(e.getMessage());