mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
ShellPkg/dmpstore: Show name of known variable vendor GUID
Change "dmpstore" to show name of known variable vendor GUID. The name is got from ShellProtocol.GetGuidName(). Cc: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Huajing Li <huajing.li@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
parent
89f7f2cdf0
commit
09e8678380
@ -424,6 +424,7 @@ CascadeProcessVariables (
|
|||||||
CHAR16 *AttrString;
|
CHAR16 *AttrString;
|
||||||
CHAR16 *HexString;
|
CHAR16 *HexString;
|
||||||
EFI_STATUS SetStatus;
|
EFI_STATUS SetStatus;
|
||||||
|
CHAR16 *GuidName;
|
||||||
|
|
||||||
if (ShellGetExecutionBreakFlag()) {
|
if (ShellGetExecutionBreakFlag()) {
|
||||||
return (SHELL_ABORTED);
|
return (SHELL_ABORTED);
|
||||||
@ -521,10 +522,18 @@ CascadeProcessVariables (
|
|||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ShellPrintHiiEx (
|
Status = gEfiShellProtocol->GetGuidName(&FoundVarGuid, &GuidName);
|
||||||
-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_HEADER_LINE), gShellDebug1HiiHandle,
|
if (EFI_ERROR (Status)) {
|
||||||
AttrString, &FoundVarGuid, FoundVarName, DataSize
|
ShellPrintHiiEx (
|
||||||
);
|
-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_HEADER_LINE), gShellDebug1HiiHandle,
|
||||||
|
AttrString, &FoundVarGuid, FoundVarName, DataSize
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
ShellPrintHiiEx (
|
||||||
|
-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_HEADER_LINE2), gShellDebug1HiiHandle,
|
||||||
|
AttrString, GuidName, FoundVarName, DataSize
|
||||||
|
);
|
||||||
|
}
|
||||||
DumpHex (2, 0, DataSize, DataBuffer);
|
DumpHex (2, 0, DataSize, DataBuffer);
|
||||||
}
|
}
|
||||||
SHELL_FREE_NON_NULL (AttrString);
|
SHELL_FREE_NON_NULL (AttrString);
|
||||||
|
@ -385,6 +385,7 @@
|
|||||||
#string STR_DMPSTORE_LOAD_GEN_FAIL #language en-US "%H%s%N: Failed to set variable %H%s%N: %r.\r\n"
|
#string STR_DMPSTORE_LOAD_GEN_FAIL #language en-US "%H%s%N: Failed to set variable %H%s%N: %r.\r\n"
|
||||||
#string STR_DMPSTORE_LOAD_BAD_FILE #language en-US "%H%s%N: Incorrect file format.\r\n"
|
#string STR_DMPSTORE_LOAD_BAD_FILE #language en-US "%H%s%N: Incorrect file format.\r\n"
|
||||||
#string STR_DMPSTORE_HEADER_LINE #language en-US "Variable %H%s%N '%H%g%N:%H%s%N' DataSize = 0x%02x\r\n"
|
#string STR_DMPSTORE_HEADER_LINE #language en-US "Variable %H%s%N '%H%g%N:%H%s%N' DataSize = 0x%02x\r\n"
|
||||||
|
#string STR_DMPSTORE_HEADER_LINE2 #language en-US "Variable %H%s%N '%H%s%N:%H%s%N' DataSize = 0x%02x\r\n"
|
||||||
#string STR_DMPSTORE_DELETE_LINE #language en-US "Delete variable '%H%g%N:%H%s%N': %r\r\n"
|
#string STR_DMPSTORE_DELETE_LINE #language en-US "Delete variable '%H%g%N:%H%s%N': %r\r\n"
|
||||||
#string STR_DMPSTORE_NO_VAR_FOUND #language en-US "%H%s%N: No matching variables found.\r\n"
|
#string STR_DMPSTORE_NO_VAR_FOUND #language en-US "%H%s%N: No matching variables found.\r\n"
|
||||||
#string STR_DMPSTORE_NO_VAR_FOUND_SFO #language en-US "VariableInfo,\"\",\"\",\"\",\"\",\"\"\r\n"
|
#string STR_DMPSTORE_NO_VAR_FOUND_SFO #language en-US "VariableInfo,\"\",\"\",\"\",\"\",\"\"\r\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user