summaryrefslogtreecommitdiff
path: root/EmbeddedPkg/Ebl
diff options
context:
space:
mode:
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-12 00:12:14 +0000
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-12 00:12:14 +0000
commit3575301ce76ebc18e5dff77e5ec4926ff1889798 (patch)
tree26c059f8819658f439070d6e0ddde4ddfa013815 /EmbeddedPkg/Ebl
parent875c883ef36919045a56f2f7afff84fc8a115c59 (diff)
downloadedk2-3575301ce76ebc18e5dff77e5ec4926ff1889798.zip
edk2-3575301ce76ebc18e5dff77e5ec4926ff1889798.tar.gz
edk2-3575301ce76ebc18e5dff77e5ec4926ff1889798.tar.bz2
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
Diffstat (limited to 'EmbeddedPkg/Ebl')
-rw-r--r--EmbeddedPkg/Ebl/Dir.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/EmbeddedPkg/Ebl/Dir.c b/EmbeddedPkg/Ebl/Dir.c
index ff1b557..126ef5d 100644
--- a/EmbeddedPkg/Ebl/Dir.c
+++ b/EmbeddedPkg/Ebl/Dir.c
@@ -24,15 +24,15 @@
GLOBAL_REMOVE_IF_UNREFERENCED CHAR8 *gFvFileType[] = {
"All",
- "Raw",
- "Freeform",
+ "Bin",
+ "section",
"SEC",
"PeiCore",
"DxeCore",
"PEIM",
"Driver",
- "Combo Driver",
- "Application",
+ "Combo",
+ "App",
"NULL",
"FV"
};
@@ -89,6 +89,7 @@ EblDirCmd (
UINTN BestMatchCount;
CHAR16 UnicodeFileName[MAX_CMD_LINE];
CHAR8 *Path;
+ CHAR8 *TypeStr;
if (Argc <= 1) {
@@ -156,10 +157,10 @@ EblDirCmd (
&Size
);
if (!EFI_ERROR (GetNextFileStatus)) {
- // Calculate size of entire file
- Section = NULL;
- Size = 0;
- Status = Fv->ReadFile (
+ // Calculate size of entire file
+ Section = NULL;
+ Size = 0;
+ Status = Fv->ReadFile (
Fv,
&NameGuid,
Section,
@@ -168,10 +169,12 @@ EblDirCmd (
&Attributes,
&AuthenticationStatus
);
- if (!((Status == EFI_BUFFER_TOO_SMALL) || !EFI_ERROR (Status))) {
- // EFI_SUCCESS or EFI_BUFFER_TOO_SMALL mean size is valid
- Size = 0;
- }
+ if (!((Status == EFI_BUFFER_TOO_SMALL) || !EFI_ERROR (Status))) {
+ // EFI_SUCCESS or EFI_BUFFER_TOO_SMALL mean size is valid
+ Size = 0;
+ }
+
+ TypeStr = (Type <= EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE) ? gFvFileType[Type] : "UNKNOWN";
// read the UI seciton to do a name match.
Section = NULL;
@@ -186,7 +189,7 @@ EblDirCmd (
);
if (!EFI_ERROR (Status)) {
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)) {
break;
}
@@ -194,7 +197,7 @@ EblDirCmd (
FreePool (Section);
} else {
if (*MatchSubString == '\0') {
- AsciiPrint (" %g %a %,d\n", &NameGuid, gFvFileType[Type], Size);
+ AsciiPrint ("%,6d %7a %g\n", Size, TypeStr, &NameGuid);
if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {
break;
}