mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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
This commit is contained in:
parent
77dfa7c7fc
commit
638909f19b
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user