mirror of https://github.com/acidanthera/audk.git
Change UI for dir of FV to make it less confusing.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9992 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
875c883ef3
commit
3575301ce7
|
@ -24,15 +24,15 @@
|
||||||
|
|
||||||
GLOBAL_REMOVE_IF_UNREFERENCED CHAR8 *gFvFileType[] = {
|
GLOBAL_REMOVE_IF_UNREFERENCED CHAR8 *gFvFileType[] = {
|
||||||
"All",
|
"All",
|
||||||
"Raw",
|
"Bin",
|
||||||
"Freeform",
|
"section",
|
||||||
"SEC",
|
"SEC",
|
||||||
"PeiCore",
|
"PeiCore",
|
||||||
"DxeCore",
|
"DxeCore",
|
||||||
"PEIM",
|
"PEIM",
|
||||||
"Driver",
|
"Driver",
|
||||||
"Combo Driver",
|
"Combo",
|
||||||
"Application",
|
"App",
|
||||||
"NULL",
|
"NULL",
|
||||||
"FV"
|
"FV"
|
||||||
};
|
};
|
||||||
|
@ -89,6 +89,7 @@ EblDirCmd (
|
||||||
UINTN BestMatchCount;
|
UINTN BestMatchCount;
|
||||||
CHAR16 UnicodeFileName[MAX_CMD_LINE];
|
CHAR16 UnicodeFileName[MAX_CMD_LINE];
|
||||||
CHAR8 *Path;
|
CHAR8 *Path;
|
||||||
|
CHAR8 *TypeStr;
|
||||||
|
|
||||||
|
|
||||||
if (Argc <= 1) {
|
if (Argc <= 1) {
|
||||||
|
@ -173,6 +174,8 @@ EblDirCmd (
|
||||||
Size = 0;
|
Size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TypeStr = (Type <= EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE) ? gFvFileType[Type] : "UNKNOWN";
|
||||||
|
|
||||||
// read the UI seciton to do a name match.
|
// read the UI seciton to do a name match.
|
||||||
Section = NULL;
|
Section = NULL;
|
||||||
Status = Fv->ReadSection (
|
Status = Fv->ReadSection (
|
||||||
|
@ -186,7 +189,7 @@ EblDirCmd (
|
||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
if (StrStr (Section, MatchSubString) != NULL) {
|
if (StrStr (Section, MatchSubString) != NULL) {
|
||||||
AsciiPrint (" %g %s %a %,d\n", &NameGuid, Section, gFvFileType[Type], Size);
|
AsciiPrint ("%,6d %7a %g %s\n", Size, TypeStr, &NameGuid, Section);
|
||||||
if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {
|
if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -194,7 +197,7 @@ EblDirCmd (
|
||||||
FreePool (Section);
|
FreePool (Section);
|
||||||
} else {
|
} else {
|
||||||
if (*MatchSubString == '\0') {
|
if (*MatchSubString == '\0') {
|
||||||
AsciiPrint (" %g %a %,d\n", &NameGuid, gFvFileType[Type], Size);
|
AsciiPrint ("%,6d %7a %g\n", Size, TypeStr, &NameGuid);
|
||||||
if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {
|
if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue