]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Refine code to follow coding style.
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 7 Aug 2012 00:44:28 +0000 (00:44 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 7 Aug 2012 00:44:28 +0000 (00:44 +0000)
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

ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c

index 655e72a8769ca48fee11aa402f5819895096cf09..be3d6f64724a51714d7479438c4c5a3818a896e1 100644 (file)
 #define INIT_DATA_BUFFER_SIZE  1024\r
 #define INIT_ATTS_BUFFER_SIZE  64\r
 \r
+/**\r
+  Base on the input attribute value to return the attribute string.\r
+\r
+  @param[in]     Atts           The input attribute value\r
+  @param[in,out] RetString      The buffer to save the attribute string.\r
+\r
+  @retval The attribute string info.\r
+**/\r
 CONST CHAR16 *\r
 EFIAPI\r
 GetAttrType (\r
@@ -28,21 +36,21 @@ GetAttrType (
 {\r
   StrCpy(RetString, L"");\r
 \r
-  if (Atts & EFI_VARIABLE_NON_VOLATILE) {\r
+  if ((Atts & EFI_VARIABLE_NON_VOLATILE) != 0) {\r
     StrCat(RetString, L"+NV");\r
   }\r
-  if (Atts & EFI_VARIABLE_RUNTIME_ACCESS) {\r
+  if ((Atts & EFI_VARIABLE_RUNTIME_ACCESS) != 0) {\r
     StrCat(RetString, L"+RS+BS");\r
-  } else if (Atts & EFI_VARIABLE_BOOTSERVICE_ACCESS) {\r
+  } else if ((Atts & EFI_VARIABLE_BOOTSERVICE_ACCESS) != 0) {\r
     StrCat(RetString, L"+BS");\r
   }\r
-  if (Atts & EFI_VARIABLE_HARDWARE_ERROR_RECORD) {\r
+  if ((Atts & EFI_VARIABLE_HARDWARE_ERROR_RECORD) != 0) {\r
     StrCat(RetString, L"+HR");\r
   }\r
-  if (Atts & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) {\r
+  if ((Atts & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) != 0) {\r
     StrCat(RetString, L"+AW");\r
   }\r
-  if (Atts & EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS) {\r
+  if ((Atts & EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS) != 0) {\r
     StrCat(RetString, L"+AT");\r
   }\r
 \r