mirror of https://github.com/acidanthera/audk.git
Replace "system.out.print" with "EdkLog.Log".
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1802 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7f62acd2fa
commit
192a42b4de
|
@ -214,18 +214,12 @@ public class AutoGen {
|
|||
Failed to creat AutoGen.c & AutoGen.h.
|
||||
**/
|
||||
public void genAutogen() throws EdkException {
|
||||
try {
|
||||
//
|
||||
// If outputPath do not exist, create it.
|
||||
//
|
||||
File path = new File(outputPath);
|
||||
path.mkdirs();
|
||||
} catch (Exception e) {
|
||||
throw new AutoGenException(
|
||||
"Failed to create "
|
||||
+ outputPath + " directory");
|
||||
}
|
||||
|
||||
//
|
||||
// If outputPath do not exist, create it.
|
||||
//
|
||||
File path = new File(outputPath);
|
||||
path.mkdirs();
|
||||
|
||||
//
|
||||
// Check current is library or not, then call the corresponding
|
||||
// function.
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.tianocore.build.global.GlobalData;
|
|||
import org.tianocore.build.global.SurfaceAreaQuery;
|
||||
import org.tianocore.build.id.ModuleIdentification;
|
||||
import org.tianocore.common.exception.EdkException;
|
||||
|
||||
import org.tianocore.common.logger.EdkLog;
|
||||
/**
|
||||
This class This class is to reorder library instance sequence according to
|
||||
library dependence.
|
||||
|
@ -97,7 +97,7 @@ public class AutogenLibOrder {
|
|||
if (libClassDeclList != null) {
|
||||
for (int j = 0; j < libClassDeclList.length; j++) {
|
||||
if (this.libClassMap.containsKey(libClassDeclList[j])) {
|
||||
System.out.println(libClassDeclList[j]
|
||||
EdkLog.log(EdkLog.EDK_ERROR,libClassDeclList[j]
|
||||
+ " class is already implement by "
|
||||
+ this.libClassMap.get(libClassDeclList[j]));
|
||||
throw new AutoGenException("Library Class: " + libClassDeclList
|
||||
|
|
Loading…
Reference in New Issue