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:
qouyang 2006-10-20 03:58:23 +00:00
parent 7f62acd2fa
commit 192a42b4de
2 changed files with 8 additions and 14 deletions

View File

@ -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.

View File

@ -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