From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 00614211F8E13 for ; Mon, 11 Jun 2018 22:05:56 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2018 22:05:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,213,1526367600"; d="scan'208";a="47043949" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga008.fm.intel.com with ESMTP; 11 Jun 2018 22:05:56 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Jun 2018 22:05:56 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Jun 2018 22:05:55 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.223]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.87]) with mapi id 14.03.0319.002; Tue, 12 Jun 2018 13:05:54 +0800 From: "Zeng, Star" To: "Wu, Hao A" , "edk2-devel@lists.01.org" CC: Ard Biesheuvel , "Dong, Eric" , "Zeng, Star" Thread-Topic: [PATCH 1/2] MdeModulePkg/NvmExpressDxe: Adjust R/W DEBUG prints to BLKIO level Thread-Index: AQHUAf6Vms6sjA2lnEuj85zEoeJzk6RcEgRw Date: Tue, 12 Jun 2018 05:05:53 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103BB55C05@shsmsx102.ccr.corp.intel.com> References: <20180612033634.35404-1-hao.a.wu@intel.com> <20180612033634.35404-2-hao.a.wu@intel.com> In-Reply-To: <20180612033634.35404-2-hao.a.wu@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 1/2] MdeModulePkg/NvmExpressDxe: Adjust R/W DEBUG prints to BLKIO level X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2018 05:05:57 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Star Zeng -----Original Message----- From: Wu, Hao A=20 Sent: Tuesday, June 12, 2018 11:37 AM To: edk2-devel@lists.01.org Cc: Wu, Hao A ; Ard Biesheuvel ; Zeng, Star ; Dong, Eric Subject: [PATCH 1/2] MdeModulePkg/NvmExpressDxe: Adjust R/W DEBUG prints to= BLKIO level REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D980 Adjust the DEBUG prints within function: NvmeRead(), NvmeWrite(), AsyncNvmeRead() and AsyncNvmeWrite() to DEBUG_BLKIO for the consistency with other storage device drivers (e.g. = ATA, USB and etc.). Cc: Ard Biesheuvel Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c b/MdeMo= dulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c index 734e1286c6..6c415109c1 100644 --- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c +++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c @@ -2,7 +2,7 @@ NvmExpressDxe driver is used to manage non-volatile memory subsystem whi= ch follows NVM Express specification. =20 - Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2013 - 2018, Intel Corporation. All rights=20 + reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e found at @@ -218,7 +218,7 @@ NvmeRead ( } } =20 - DEBUG ((EFI_D_VERBOSE, "%a: Lba =3D 0x%08Lx, Original =3D 0x%08Lx, " + DEBUG ((DEBUG_BLKIO, "%a: Lba =3D 0x%08Lx, Original =3D 0x%08Lx, " "Remaining =3D 0x%08Lx, BlockSize =3D 0x%x, Status =3D %r\n", __FUNCTI= ON__, Lba, (UINT64)OrginalBlocks, (UINT64)Blocks, BlockSize, Status)); =20 @@ -296,7 +296,7 @@ NvmeWrite ( } } =20 - DEBUG ((EFI_D_VERBOSE, "%a: Lba =3D 0x%08Lx, Original =3D 0x%08Lx, " + DEBUG ((DEBUG_BLKIO, "%a: Lba =3D 0x%08Lx, Original =3D 0x%08Lx, " "Remaining =3D 0x%08Lx, BlockSize =3D 0x%x, Status =3D %r\n", __FUNCTI= ON__, Lba, (UINT64)OrginalBlocks, (UINT64)Blocks, BlockSize, Status)); =20 @@ -802,7 +802,7 @@ NvmeAsyncRead ( } } =20 - DEBUG ((EFI_D_VERBOSE, "%a: Lba =3D 0x%08Lx, Original =3D 0x%08Lx, " + DEBUG ((DEBUG_BLKIO, "%a: Lba =3D 0x%08Lx, Original =3D 0x%08Lx, " "Remaining =3D 0x%08Lx, BlockSize =3D 0x%x, Status =3D %r\n", __FUNCTI= ON__, Lba, (UINT64)OrginalBlocks, (UINT64)Blocks, BlockSize, Status)); =20 @@ -922,7 +922,7 @@ NvmeAsyncWrite ( } } =20 - DEBUG ((EFI_D_VERBOSE, "%a: Lba =3D 0x%08Lx, Original =3D 0x%08Lx, " + DEBUG ((DEBUG_BLKIO, "%a: Lba =3D 0x%08Lx, Original =3D 0x%08Lx, " "Remaining =3D 0x%08Lx, BlockSize =3D 0x%x, Status =3D %r\n", __FUNCTI= ON__, Lba, (UINT64)OrginalBlocks, (UINT64)Blocks, BlockSize, Status)); =20 -- 2.12.0.windows.1