summaryrefslogtreecommitdiff
path: root/EmbeddedPkg/Ebl/EfiDevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'EmbeddedPkg/Ebl/EfiDevice.c')
-rw-r--r--EmbeddedPkg/Ebl/EfiDevice.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/EmbeddedPkg/Ebl/EfiDevice.c b/EmbeddedPkg/Ebl/EfiDevice.c
index 7633d66934..e129a3cb8c 100644
--- a/EmbeddedPkg/Ebl/EfiDevice.c
+++ b/EmbeddedPkg/Ebl/EfiDevice.c
@@ -81,13 +81,33 @@ EblPrintBlkIoInfo (
)
{
UINT64 DeviceSize;
-
+ UINTN Index;
+ UINTN Max;
+ EFI_OPEN_FILE *FsFile;
if (File == NULL) {
return;
}
AsciiPrint (" %a: ", File->DeviceName);
+
+ // print out name of file system, if any, on this block device
+ Max = EfiGetDeviceCounts (EfiOpenFileSystem);
+ if (Max != 0) {
+ for (Index = 0; Index < Max; Index++) {
+ FsFile = EfiDeviceOpenByType (EfiOpenFileSystem, Index);
+ if (FsFile != NULL) {
+ if (FsFile->EfiHandle == File->EfiHandle) {
+ AsciiPrint ("fs%d: ", Index);
+ EfiClose (FsFile);
+ break;
+ }
+ }
+ EfiClose (FsFile);
+ }
+ }
+
+ // Print out useful Block IO media properties
if (File->FsBlockIoMedia.RemovableMedia) {
AsciiPrint ("Removable ");
}
@@ -103,7 +123,6 @@ EblPrintBlkIoInfo (
EfiClose (File);
}
-
/**
Print information about the Load File devices.
If the device supports PXE dump out extra information