]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg SmbiosView: Display Type 0 BIOS segment in hexadecimal
authorJeff Westfahl <jeff.westfahl@ni.com>
Fri, 21 Apr 2017 21:25:07 +0000 (05:25 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 25 Apr 2017 00:52:03 +0000 (08:52 +0800)
The SMBIOS Type 0 BIOS segment field is currently displayed in decimal.
Since this field is likely to have a value like 0xE800 or 0xF000, using
hexadecimal seems like a better choice.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Westfahl <jeff.westfahl@ni.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c

index 50d15ef1758eceb9e3fe004f5101a8dd5eb47a30..038f111ec3c5fc27622eec367ea494f0de1b02bf 100644 (file)
@@ -316,7 +316,7 @@ SmbiosPrintStructure (
   case 0:\r
     PRINT_PENDING_STRING (Struct, Type0, Vendor);\r
     PRINT_PENDING_STRING (Struct, Type0, BiosVersion);\r
-    PRINT_STRUCT_VALUE (Struct, Type0, BiosSegment);\r
+    PRINT_STRUCT_VALUE_H (Struct, Type0, BiosSegment);\r
     PRINT_PENDING_STRING (Struct, Type0, BiosReleaseDate);\r
     ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_BIOS_SIZE), gShellDebug1HiiHandle, 64 * (Struct->Type0->BiosSize + 1));\r
 \r