X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FFrameworkTasks%2Forg%2Ftianocore%2Fframework%2Ftasks%2FPeiReBaseTask.java;fp=Tools%2FSource%2FFrameworkTasks%2Forg%2Ftianocore%2Fframework%2Ftasks%2FPeiReBaseTask.java;h=ec74651cd0bee9af63baaa55974ebebf456d2b19;hp=c033c0d199d881f4a0c2cc33f5c874c303e56281;hb=219e2247478e46f81b744252b13cd1df01a76756;hpb=c06913ffeab43e4f818738f65599095ccb35f263 diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/PeiReBaseTask.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/PeiReBaseTask.java index c033c0d199..ec74651cd0 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/PeiReBaseTask.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/PeiReBaseTask.java @@ -40,7 +40,7 @@ public class PeiReBaseTask extends Task implements EfiDefine { // / Input file // / private String inputFile = ""; - + private String inputFileName = ""; // / // / Output file // / @@ -128,7 +128,8 @@ public class PeiReBaseTask extends Task implements EfiDefine { // // Set debug log information. // - EdkLog.log(EdkLog.EDK_INFO, Commandline.toString(cmdline.getCommandline())); + EdkLog.log(EdkLog.EDK_VERBOSE, Commandline.toString(cmdline.getCommandline())); + EdkLog.log(EdkLog.EDK_INFO, this.inputFileName); revl = runner.execute(); @@ -136,16 +137,13 @@ public class PeiReBaseTask extends Task implements EfiDefine { // // command execution success // - EdkLog.log(EdkLog.EDK_INFO,"PeiBase succeeded!"); + EdkLog.log(EdkLog.EDK_VERBOSE, "PeiReBase succeeded!"); } else { // // command execution fail // - EdkLog.log(EdkLog.EDK_ERROR, "PeiBase failed. (error=" - + Integer.toHexString(revl) + ")"); - throw new BuildException("PeiBase failed. (error=" - + Integer.toHexString(revl) + ")"); - + EdkLog.log(EdkLog.EDK_INFO, "ERROR = " + Integer.toHexString(revl)); + throw new BuildException("PeiReBase failed!"); } } catch (Exception e) { throw new BuildException(e.getMessage()); @@ -172,6 +170,7 @@ public class PeiReBaseTask extends Task implements EfiDefine { * string of input file name. */ public void setInputFile(String inputFile) { + this.inputFileName = (new File(inputFile)).getName(); this.inputFile = "-I " + inputFile; }