From nobody Fri Apr 26 17:14:31 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail(p=none dis=none) header.from=intel.com Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1533791653121313.4519163399184; Wed, 8 Aug 2018 22:14:13 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 842EF210E38BC; Wed, 8 Aug 2018 22:14:11 -0700 (PDT) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4E8BC210C6421 for ; Wed, 8 Aug 2018 22:14:09 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2018 22:14:09 -0700 Received: from ydong10-win10.ccr.corp.intel.com ([10.239.9.125]) by orsmga004.jf.intel.com with ESMTP; 08 Aug 2018 22:14:08 -0700 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,213,1531810800"; d="scan'208";a="223164931" From: Eric Dong To: edk2-devel@lists.01.org Date: Thu, 9 Aug 2018 13:13:49 +0800 Message-Id: <20180809051349.21120-1-eric.dong@intel.com> X-Mailer: git-send-email 2.15.0.windows.1 Subject: [edk2] [Patch] SecurityPkg/TcgStorageCoreLib.h: Use ascii instead of unicode. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hao Wu MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RDMRC_1 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" _FILE_ parameter is an ASCII string. Current implementation used as unicode string instead of ascii string. This patch fixed this issue. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1081 Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed_off_by: Eric Dong Reviewed-by: Hao Wu --- SecurityPkg/Include/Library/TcgStorageCoreLib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SecurityPkg/Include/Library/TcgStorageCoreLib.h b/SecurityPkg/= Include/Library/TcgStorageCoreLib.h index b2a0ef8f0c..213140de32 100644 --- a/SecurityPkg/Include/Library/TcgStorageCoreLib.h +++ b/SecurityPkg/Include/Library/TcgStorageCoreLib.h @@ -26,21 +26,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITH= ER EXPRESS OR IMPLIED. { = \ TCG_RESULT ret =3D (arg); = \ if (ret !=3D TcgResultSuccess) { = \ - DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %s:%u\n", __FILE__, __LIN= E__)); \ + DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %a:%u\n", __FILE__, __LIN= E__)); \ return ret; = \ } = \ } =20 #define METHOD_STATUS_ERROR_CHECK(arg, failRet) = \ if ((arg) !=3D TCG_METHOD_STATUS_CODE_SUCCESS) { = \ - DEBUG ((DEBUG_INFO, "Method Status error: 0x%02X (%s)\n", arg, TcgMeth= odStatusString(arg))); \ + DEBUG ((DEBUG_INFO, "Method Status error: 0x%02X (%a)\n", arg, TcgMeth= odStatusString(arg))); \ return (failRet); = \ } =20 #define NULL_CHECK(arg) = \ do { = \ if ((arg) =3D=3D NULL) { = \ - DEBUG ((DEBUG_INFO, "NULL_CHECK(%s) failed at %s:%u\n", #arg, __FILE= __, __LINE__)); \ + DEBUG ((DEBUG_INFO, "NULL_CHECK(%a) failed at %a:%u\n", #arg, __FILE= __, __LINE__)); \ return TcgResultFailureNullPointer; = \ } = \ } while (0) --=20 2.15.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel