From: "Ni, Ruiyu" <ruiyu.ni@intel.com>
To: "Dong, Eric" <eric.dong@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Shao, Ming" <ming.shao@intel.com>,
"Shao@ml01.01.org" <Shao@ml01.01.org>
Subject: Re: [Patch] UefiCpuPkg RegisterCpuFeaturesLib: Enhance debug messages.
Date: Wed, 16 Aug 2017 08:12:52 +0000 [thread overview]
Message-ID: <734D49CCEBEEF84792F5B80ED585239D5B9EF3EA@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <1502775098-14688-1-git-send-email-eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Thanks/Ray
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> Eric Dong
> Sent: Tuesday, August 15, 2017 1:32 PM
> To: edk2-devel@lists.01.org
> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Shao, Ming <ming.shao@intel.com>;
> Shao@ml01.01.org
> Subject: [edk2] [Patch] UefiCpuPkg RegisterCpuFeaturesLib: Enhance debug
> messages.
>
> Current debug message when enable/disable CPU feature not correct. This
> patch enhances it to make it more accurate.
>
> Cc: Ruiyu Ni <ruiyu.ni@intel.com>
> Cc: Shao, Ming <ming.shao@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Eric Dong <eric.dong@intel.com>
> ---
> UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 8
> ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git
> a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c
> b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c
> index 54c9827..474aea3 100644
> --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c
> +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c
> @@ -528,9 +528,9 @@ AnalysisProcessorFeatures (
> //
> SupportedMaskCleanBit (CpuFeaturesData->SettingPcds,
> CpuFeatureInOrder->FeatureMask);
> if (CpuFeatureInOrder->FeatureName != NULL) {
> - DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Name
> = %a.\n", CpuFeatureInOrder->FeatureName));
> + DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature:
> + Name = %a.\n", CpuFeatureInOrder->FeatureName));
> } else {
> - DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Mask =
> "));
> + DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature:
> + Mask = "));
> DumpCpuFeatureMask (CpuFeatureInOrder->FeatureMask);
> }
> }
> @@ -538,9 +538,9 @@ AnalysisProcessorFeatures (
> Status = CpuFeatureInOrder->InitializeFunc (ProcessorNumber, CpuInfo,
> CpuFeatureInOrder->ConfigData, FALSE);
> if (EFI_ERROR (Status)) {
> if (CpuFeatureInOrder->FeatureName != NULL) {
> - DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Name
> = %a.\n", CpuFeatureInOrder->FeatureName));
> + DEBUG ((DEBUG_WARN, "Warning :: Failed to disable Feature:
> + Name = %a.\n", CpuFeatureInOrder->FeatureName));
> } else {
> - DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Mask =
> "));
> + DEBUG ((DEBUG_WARN, "Warning :: Failed to disable Feature:
> + Mask = "));
> DumpCpuFeatureMask (CpuFeatureInOrder->FeatureMask);
> }
> }
> --
> 2.7.0.windows.1
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
prev parent reply other threads:[~2017-08-16 8:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-15 5:31 [Patch] UefiCpuPkg RegisterCpuFeaturesLib: Enhance debug messages Eric Dong
2017-08-15 5:31 ` [Patch] UefiCpuPkg RegisterCpuFeaturesLib: Fix buffer pointer error usage Eric Dong
2017-08-15 5:44 ` Ni, Ruiyu
2017-08-15 5:31 ` [Patch] UefiCpuPkg BaseUefiCpuLib: remove error reference code Eric Dong
2017-08-16 8:13 ` Ni, Ruiyu
2017-08-16 8:14 ` Dong, Eric
2017-08-16 8:12 ` Ni, Ruiyu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=734D49CCEBEEF84792F5B80ED585239D5B9EF3EA@SHSMSX104.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox