]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Make the Volume Name display the same name that the use needs to type. ie. replace...
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 9 Feb 2010 00:22:30 +0000 (00:22 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 9 Feb 2010 00:22:30 +0000 (00:22 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9952 6f19259b-4bc3-4df7-8a09-765794883524

EmbeddedPkg/Ebl/EfiDevice.c

index e129a3cb8caad84fdb68b542dfaca993cabbb442..4d4cd3f5b7e935cf12067bc37953f730588cc009 100644 (file)
@@ -31,13 +31,22 @@ EblPrintFsInfo (
   IN  EFI_OPEN_FILE   *File\r
   )\r
 {\r
+  CHAR16 *Str;\r
+\r
   if (File == NULL) {\r
     return;\r
   }\r
 \r
   AsciiPrint ("  %a: ", File->DeviceName);\r
   if (File->FsInfo != NULL) {\r
-    AsciiPrint ("%s: ", File->FsInfo->VolumeLabel);\r
+    for (Str = File->FsInfo->VolumeLabel; *Str != '\0'; Str++) {\r
+      if (*Str == ' ') {\r
+        // UI makes you enter _ for space, so make the printout match that\r
+        *Str = '_';\r
+      }\r
+      AsciiPrint ("%c", *Str);\r
+    }\r
+    AsciiPrint (":");\r
     if (File->FsInfo->ReadOnly) {\r
       AsciiPrint ("ReadOnly");\r
     }\r