summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellDebug1CommandsLib
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2014-08-05 20:56:40 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-05 20:56:40 +0000
commit9954df7b634358be430fa738f89334386b2a1860 (patch)
treeb5834ffa298751eef6f581a7a514d5d05828760e /ShellPkg/Library/UefiShellDebug1CommandsLib
parentcab102c36bac10af35cbcdf8cf2fb5aa931f2953 (diff)
Updates the logic to allow DmpStore to specify a name independent of specifying a GUID.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15757 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
index 00fe3ad923..0eee944ed4 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
@@ -641,6 +641,9 @@ ShellCommandRunDmpStore (
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle, L"-l or -s", L"-d");
ShellStatus = SHELL_INVALID_PARAMETER;
} else {
+ //
+ // Determine the GUID to search for based on -all and -guid parameters
+ //
if (!ShellCommandLineGetFlag(Package, L"-all")) {
GuidStr = ShellCommandLineGetValue(Package, L"-guid");
if (GuidStr != NULL) {
@@ -653,11 +656,15 @@ ShellCommandRunDmpStore (
} else {
Guid = &gEfiGlobalVariableGuid;
}
- Name = ShellCommandLineGetRawValue(Package, 1);
} else {
- Name = NULL;
Guid = NULL;
}
+
+ //
+ // Get the Name of the variable to find
+ //
+ Name = ShellCommandLineGetRawValue(Package, 1);
+
if (ShellStatus == SHELL_SUCCESS) {
if (ShellCommandLineGetFlag(Package, L"-s")) {
Type = DmpStoreSave;