diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-09 00:22:30 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-09 00:22:30 +0000 |
commit | 638909f19bb6cbdc218a607f29b0b96516d15012 (patch) | |
tree | b15ac273493aa6f6f22a7bbfe8a98aad915ec7b7 /EmbeddedPkg | |
parent | 77dfa7c7fc4f5be4ab6eb45e05d77060c7c309ec (diff) | |
download | edk2-platforms-638909f19bb6cbdc218a607f29b0b96516d15012.tar.xz |
Make the Volume Name display the same name that the use needs to type. ie. replace space with _.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9952 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r-- | EmbeddedPkg/Ebl/EfiDevice.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/EmbeddedPkg/Ebl/EfiDevice.c b/EmbeddedPkg/Ebl/EfiDevice.c index e129a3cb8c..4d4cd3f5b7 100644 --- a/EmbeddedPkg/Ebl/EfiDevice.c +++ b/EmbeddedPkg/Ebl/EfiDevice.c @@ -31,13 +31,22 @@ EblPrintFsInfo ( IN EFI_OPEN_FILE *File
)
{
+ CHAR16 *Str;
+
if (File == NULL) {
return;
}
AsciiPrint (" %a: ", File->DeviceName);
if (File->FsInfo != NULL) {
- AsciiPrint ("%s: ", File->FsInfo->VolumeLabel);
+ for (Str = File->FsInfo->VolumeLabel; *Str != '\0'; Str++) {
+ if (*Str == ' ') {
+ // UI makes you enter _ for space, so make the printout match that
+ *Str = '_';
+ }
+ AsciiPrint ("%c", *Str);
+ }
+ AsciiPrint (":");
if (File->FsInfo->ReadOnly) {
AsciiPrint ("ReadOnly");
}
|