Dandan Bi 
							
						 
					 
					
						
						
							
						
						ff28c72b45 
					 
					
						
						
							
							ShellPkg/UefiShellDebug1CommandsLib: Fix coding style issues  
						
						... 
						
						
						
						Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com > 
						
						
					 
					
						2016-12-14 21:34:32 +08:00 
						 
				 
			
				
					
						
							
							
								Ruiyu Ni 
							
						 
					 
					
						
						
							
						
						e9597b4519 
					 
					
						
						
							
							ShellPkg/dmpstore: Support "-sfo"  
						
						... 
						
						
						
						The patch adds the "-sfo" support to "dmpstore" command.
When -l or -d is specified, -sfo is not supported.
When the variable specified by name and GUID cannot be found,
an error message is displayed; Otherwise, the SFO is displayed.
E.g.: "dmpstore -guid GuidThatDoesntExist -sfo" produces output
as:
ShellCommand,"dmpstore"
VariableInfo,"","GuidThatDoesntExist","","",""
"dmpstore NameThatDoesntExist -guid GuidThatDoesntExist -sfo"
produces output as:
ShellCommand,"dmpstore"
dmpstore: No matching variables found. Guid GuidThatDoesntExist, Name
NameThatDoesntExist
The difference between the above 2 cases is that former one only
specifies the GUID, but the latter one specifies both name and GUID.
Since not specifying GUID means to use GlobalVariableGuid,
"dmpstore NameThatDoesntExist -sfo" produces the similar output as
latter one.
I personally prefer to always produce SFO output for both cases.
But the above behavior is the discussion result between HPE engineers.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Tapan Shah <tapandshah@hpe.com > 
						
						
					 
					
						2016-11-16 12:32:17 +08:00 
						 
				 
			
				
					
						
							
							
								Chen A Chen 
							
						 
					 
					
						
						
							
						
						c4e74e9b81 
					 
					
						
						
							
							ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chen A Chen <chen.a.chen@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Ruiyu Ni <Ruiyu.ni@intel.com > 
						
						
					 
					
						2016-10-09 10:27:47 +08:00 
						 
				 
			
				
					
						
							
							
								Qiu Shumin 
							
						 
					 
					
						
						
							
						
						4dc0d578b8 
					 
					
						
						
							
							ShellPkg: Refine code to use Strn**S safe functions instead of Str**S ones in some cases.  
						
						... 
						
						
						
						Safe string functions may ASSERT when the source length is larger than the MaxDest. This patch use Strn**S to indicate the copy length. 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com >
Reviewed-by: Tapan Shah <<tapandshah@hp.com >>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17894  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2015-07-09 03:19:06 +00:00 
						 
				 
			
				
					
						
							
							
								Qiu Shumin 
							
						 
					 
					
						
						
							
						
						e75390f029 
					 
					
						
						
							
							ShellPkg: Use safe string functions to refine code.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17730  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2015-06-30 03:18:31 +00:00 
						 
				 
			
				
					
						
							
							
								Tapan Shah 
							
						 
					 
					
						
						
							
						
						c011b6c9e2 
					 
					
						
						
							
							ShellPkg: Standardized HP Copyright Message String  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16759  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2015-02-04 22:25:01 +00:00 
						 
				 
			
				
					
						
							
							
								Tapan Shah 
							
						 
					 
					
						
						
							
						
						4092a8f6d0 
					 
					
						
						
							
							ShellPkg: Update Debug1 profile commands response output  
						
						... 
						
						
						
						Updates to Debug1 profile commands response output. 
Updating Debug1 profile commands source code to include command name as a prefix in error message.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16729  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2015-02-03 21:22:53 +00:00 
						 
				 
			
				
					
						
							
							
								jcarsey 
							
						 
					 
					
						
						
							
						
						8896351646 
					 
					
						
						
							
							Dmpstore command does not return lasterror equal to 0 when ‘-s’ flag used to dump variables in file  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by : Tapan Shah <tapandshah@hp.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16196  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-10-07 19:57:23 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						99ab5fc36c 
					 
					
						
						
							
							This patch replaces StrCpy with StrnCpy or refactors out the usage of StrCpy through some other means.  
						
						... 
						
						
						
						This patch replaces StrCat with StrnCat or refactors out the usage of StrCat through some other means.
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@16004  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-08-29 21:57:42 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						9954df7b63 
					 
					
						
						
							
							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 
						
						
					 
					
						2014-08-05 20:56:40 +00:00 
						 
				 
			
				
					
						
							
							
								Tapan Shah 
							
						 
					 
					
						
						
							
						
						148af38722 
					 
					
						
						
							
							ShellPkg: Fix Ctrl+C support for dmpstore command.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15604  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-06-30 20:14:24 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						14868afbb8 
					 
					
						
						
							
							Update prints of variable attributes from 'RS' to 'RT' for 'Dmpstore' command.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <shumin.qiu@intel.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15164  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-23 00:29:53 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						5511b319f2 
					 
					
						
						
							
							1. Change the implementation of function 'LoadVariableFromFile' to return SHELL_STATUS. 2. Add code to check whether the pointer 'FoundVarName' in 'DmpStore.c' is NULL before used.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <shumin.qiu@intel.com >
Reviewed-by: Ni, Ruiyu <ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15112  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-14 07:30:50 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						483b86b918 
					 
					
						
						
							
							Set the type of return value from function 'LoadVariablesFromFile' in 'DmpStore.c' to match the type of 'ShellStatus'.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <shumin.qiu@intel.com >
Reviewed-by: Ni, Ruiyu <ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15102  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-13 07:28:01 +00:00 
						 
				 
			
				
					
						
							
							
								Ruiyu Ni 
							
						 
					 
					
						
						
							
						
						7e63fc9de9 
					 
					
						
						
							
							Add the feature "dmpstore -l" and "dmpstore -s".  
						
						... 
						
						
						
						The file format is as below:
<File> := <Variable>+
<Variable> := <Name-Size> <Data-Size> <Name> <GUID> <Attributes> <Data> <Crc32>
Each variable representation in the file has a CRC32 value which can provide a mechanism to detect the file modification.
When any CRC32 is incorrect, dmpstore rejects to load the variables from the file.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15083  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-10 01:52:24 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						03bc7c2b09 
					 
					
						
						
							
							Add code to check whether the pointer 'NewBuffer'  in 'FileHandelWrappers.c' and the pointer 'FoundVarName' in 'Dmpstore.c' are NULL before used.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <shumin.qiu@intel.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15060  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-09 00:30:27 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						de4ebdcfcd 
					 
					
						
						
							
							Add the comment for function 'IsValidSplit' in 'Shell.c'. Add code to check whether pointer 'DataBuffer' in 'DmpStore.c' is NULL before used.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <shumin.qiu@intel.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15051  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-07 01:51:08 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						5bd12b0555 
					 
					
						
						
							
							ShellPkg: fix DmpStore for deleting  
						
						... 
						
						
						
						This change allows DmpStore command to delete all variables whereas before it would stop after a single deletion due to looping errors.  It uses a recursive function and deletes the last item returned from GetNextVariableName() first and then goes "backwards" to the first items.  
This can't delete authenticated variables.
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@15014  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2013-12-20 22:33:01 +00:00 
						 
				 
			
				
					
						
							
							
								jcarsey 
							
						 
					 
					
						
						
							
						
						224e8e2f47 
					 
					
						
						
							
							ShellPkg: Return an error when it happens  
						
						... 
						
						
						
						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://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14336  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2013-05-09 16:16:21 +00:00 
						 
				 
			
				
					
						
							
							
								ydong10 
							
						 
					 
					
						
						
							
						
						44890dbde6 
					 
					
						
						
							
							Refine code to make it more safely.  
						
						... 
						
						
						
						Signed-off-by: Eric Dong <eric.dong@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13712  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-09-10 09:35:43 +00:00 
						 
				 
			
				
					
						
							
							
								ydong10 
							
						 
					 
					
						
						
							
						
						44c5d6b548 
					 
					
						
						
							
							Refine coding style.  
						
						... 
						
						
						
						Signed-off-by: Eric Dong <eric.dong@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13700  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-09-05 08:46:51 +00:00 
						 
				 
			
				
					
						
							
							
								ydong10 
							
						 
					 
					
						
						
							
						
						99bb0f8dd7 
					 
					
						
						
							
							Fix build fail.  
						
						... 
						
						
						
						Signed-off-by: Eric Dong <eric.dong@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13697  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-09-04 08:35:16 +00:00 
						 
				 
			
				
					
						
							
							
								ydong10 
							
						 
					 
					
						
						
							
						
						d6972185d0 
					 
					
						
						
							
							Refine the code to make it more safely.  
						
						... 
						
						
						
						Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13696  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-09-03 01:59:05 +00:00 
						 
				 
			
				
					
						
							
							
								ydong10 
							
						 
					 
					
						
						
							
						
						cd0842dc82 
					 
					
						
						
							
							Refine code to follow coding style.  
						
						... 
						
						
						
						Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13595  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-08-07 00:44:28 +00:00 
						 
				 
			
				
					
						
							
							
								ydong10 
							
						 
					 
					
						
						
							
						
						c85c6de761 
					 
					
						
						
							
							Fix build fail for GCC  
						
						... 
						
						
						
						Signed-off-by: Eric Dong <eric.dong@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13559  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-07-26 07:44:26 +00:00 
						 
				 
			
				
					
						
							
							
								ydong10 
							
						 
					 
					
						
						
							
						
						73c82041dc 
					 
					
						
						
							
							Fixed issues:  
						
						... 
						
						
						
						1.Refine the logic about show different attribute.
2.Refine the logic about allocate memory for variable name and data.
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13558  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-07-26 07:15:31 +00:00 
						 
				 
			
				
					
						
							
							
								ydong10 
							
						 
					 
					
						
						
							
						
						9d8fa791f5 
					 
					
						
						
							
							ShellPkg: Fix recursion when deleting all variables.  
						
						... 
						
						
						
						Signed-off-by: Dong Eric <eric.dong@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13484  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-07-04 01:14:07 +00:00 
						 
				 
			
				
					
						
							
							
								lzeng14 
							
						 
					 
					
						
						
							
						
						ea4fe84fe5 
					 
					
						
						
							
							Update comments in DmpStore.c to be more suitable.  
						
						... 
						
						
						
						Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13223  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-04-27 01:18:41 +00:00 
						 
				 
			
				
					
						
							
							
								jcarsey 
							
						 
					 
					
						
						
							
						
						3737ac2bc3 
					 
					
						
						
							
							comp - add comments and add input verification  
						
						... 
						
						
						
						bcfg - updated for bugs.
compress - rename for coding standards. add comments.
dblk - add comments, input verification, and a header line
dmem - add comments, add input verification, add system table info
dmpstore - add comments
eficompress - add comments and add input verification 
efidecompress - add comments and add input verification 
loadpcirom - add comments and more output messages
memmap - add more output to exceed the spec.
mm - move functions, add comments, add input verification.
mode - add comment
pci - add input verification.
SerMode - add comments and add input verification 
setsize - add comments and add input verification 
setvar - add comments and add input verification 
smbiosview - add input verification.
clarify error messages.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11438  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2011-03-25 21:22:20 +00:00 
						 
				 
			
				
					
						
							
							
								jcarsey 
							
						 
					 
					
						
						
							
						
						5d73d92f56 
					 
					
						
						
							
							Add "Debug1" profile (all but Edit and HexEdit commands)  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11068  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2010-11-16 22:36:37 +00:00