From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) by mx.groups.io with SMTP id smtpd.web11.2080.1587768960744500348 for ; Fri, 24 Apr 2020 15:56:00 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: bsdio.com, ip: 166.70.13.232, mailfrom: rebecca@bsdio.com) Received: from in01.mta.xmission.com ([166.70.13.51]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jS7El-00054Q-VN; Fri, 24 Apr 2020 16:56:00 -0600 Received: from mta4.zcs.xmission.com ([166.70.13.68]) by in01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jS7El-00014I-5g; Fri, 24 Apr 2020 16:55:59 -0600 Received: from localhost (localhost [127.0.0.1]) by mta4.zcs.xmission.com (Postfix) with ESMTP id 00A5D500705; Fri, 24 Apr 2020 16:55:59 -0600 (MDT) X-Amavis-Modified: Mail body modified (using disclaimer) - mta4.zcs.xmission.com Received: from mta4.zcs.xmission.com ([127.0.0.1]) by localhost (mta4.zcs.xmission.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KMtdjhfLR_qw; Fri, 24 Apr 2020 16:55:58 -0600 (MDT) Received: from photon.int.bluestop.org (muon.bluestop.org [65.103.231.193]) by mta4.zcs.xmission.com (Postfix) with ESMTPSA id 9E2AF500698; Fri, 24 Apr 2020 16:55:58 -0600 (MDT) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Ray Ni , Zhichao Gao Date: Fri, 24 Apr 2020 16:55:55 -0600 Message-Id: <20200424225555.187831-1-rebecca@bsdio.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-XM-SPF: eid=1jS7El-00014I-5g;;;mid=<20200424225555.187831-1-rebecca@bsdio.com>;;;hst=in01.mta.xmission.com;;;ip=166.70.13.68;;;frm=rebecca@bsdio.com;;;spf=pass X-SA-Exim-Connect-IP: 166.70.13.68 X-SA-Exim-Mail-From: rebecca@bsdio.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa07.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,XMSubLong autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; IP=ok Body=1 Fuz1=1] [Fuz2=1] X-Spam-DCC: XMission; sa07 1397; IP=ok Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;devel@edk2.groups.io X-Spam-Relay-Country: X-Spam-Timing: total 451 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 12 (2.7%), b_tie_ro: 10 (2.3%), parse: 1.07 (0.2%), extract_message_metadata: 17 (3.9%), get_uri_detail_list: 1.24 (0.3%), tests_pri_-1000: 25 (5.4%), tests_pri_-950: 1.27 (0.3%), tests_pri_-900: 1.06 (0.2%), tests_pri_-90: 98 (21.8%), check_bayes: 95 (21.2%), b_tokenize: 7 (1.5%), b_tok_get_all: 41 (9.0%), b_comp_prob: 2.8 (0.6%), b_tok_touch_all: 42 (9.2%), b_finish: 0.99 (0.2%), tests_pri_0: 282 (62.6%), check_dkim_signature: 0.49 (0.1%), check_dkim_adsp: 38 (8.4%), poll_dns_idle: 35 (7.8%), tests_pri_10: 2.3 (0.5%), tests_pri_500: 8 (1.7%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH] ShellPkg: smbiosview - print field values as unsigned integers X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Content-Transfer-Encoding: quoted-printable This prevents overflow when printing DWORD fields such as the type 17 tables's extended DIMM size. Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Rebecca Cran --- .../Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintIn= fo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c index a75caff3de..be8b7c0a97 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c @@ -49,7 +49,7 @@ #define PRINT_STRUCT_VALUE(pStruct, type, element) \=0D do { \=0D ShellPrintEx(-1,-1,L"%a",#element); \=0D - ShellPrintEx(-1,-1,L": %d\n", (pStruct->type->element)); \=0D + ShellPrintEx(-1,-1,L": %u\n", (pStruct->type->element)); \=0D } while (0);=0D =0D #define PRINT_STRUCT_VALUE_H(pStruct, type, element) \=0D --=20 2.25.1