public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Chang, Abner" <abner.chang@amd.com>
To: Nickle Wang <nicklew@nvidia.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: Igor Kulchytskyy <igork@ami.com>, Nick Ramirez <nramirez@nvidia.com>
Subject: Re: [PATCH 2/3] RedfishPkg/RedfishPlatformConfigDxe: hide debug message
Date: Wed, 5 Jul 2023 02:18:44 +0000	[thread overview]
Message-ID: <MN2PR12MB39667CAC3C66C96FA2A84738EA2FA@MN2PR12MB3966.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20230703132023.7184-1-nicklew@nvidia.com>

[AMD Official Use Only - General]

Hi Nickle,
Besides using REDFISH_PLATFORM_CONFIG_DEBUG, can we update REDFISH_PLATFORM_CONFIG_DEBUG to DEBUG_MANAGEABILITY?

Thanks
Abner

> -----Original Message-----
> From: Nickle Wang <nicklew@nvidia.com>
> Sent: Monday, July 3, 2023 9:20 PM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <Abner.Chang@amd.com>; Igor Kulchytskyy
> <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com>
> Subject: [PATCH 2/3] RedfishPkg/RedfishPlatformConfigDxe: hide debug
> message
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> Change debug message level of showing ordered list op-code
> to REDFISH_PLATFORM_CONFIG_DEBUG.
>
> Signed-off-by: Nickle Wang <nicklew@nvidia.com>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Igor Kulchytskyy <igork@ami.com>
> Cc: Nick Ramirez <nramirez@nvidia.com>
> ---
>  .../RedfishPlatformConfigDxe.c                | 24 +++++++++----------
>  1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c
> b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c
> index 462f269f6a3f..f2a8e77d9b00 100644
> --- a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c
> +++ b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c
> @@ -955,12 +955,12 @@ DumpOrderedListValue (
>      return;
>    }
>
> -  DEBUG ((DEBUG_ERROR, "Value.Type= 0x%x\n", OrderedListStatement-
> >Value.Type));
> -  DEBUG ((DEBUG_ERROR, "Value.BufferValueType= 0x%x\n",
> OrderedListStatement->Value.BufferValueType));
> -  DEBUG ((DEBUG_ERROR, "Value.BufferLen= 0x%x\n",
> OrderedListStatement->Value.BufferLen));
> -  DEBUG ((DEBUG_ERROR, "Value.Buffer= 0x%x\n", OrderedListStatement-
> >Value.Buffer));
> -  DEBUG ((DEBUG_ERROR, "Value.MaxContainers= 0x%x\n",
> OrderedListStatement->ExtraData.OrderListData.MaxContainers));
> -  DEBUG ((DEBUG_ERROR, "StorageWidth= 0x%x\n", OrderedListStatement-
> >StorageWidth));
> +  DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "Value.Type= 0x%x\n",
> OrderedListStatement->Value.Type));
> +  DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "Value.BufferValueType=
> 0x%x\n", OrderedListStatement->Value.BufferValueType));
> +  DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "Value.BufferLen=
> 0x%x\n", OrderedListStatement->Value.BufferLen));
> +  DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "Value.Buffer= 0x%x\n",
> OrderedListStatement->Value.Buffer));
> +  DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "Value.MaxContainers=
> 0x%x\n", OrderedListStatement->ExtraData.OrderListData.MaxContainers));
> +  DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "StorageWidth= 0x%x\n",
> OrderedListStatement->StorageWidth));
>
>    if (OrderedListStatement->Value.Buffer == NULL) {
>      return;
> @@ -977,7 +977,7 @@ DumpOrderedListValue (
>        Value8 = (UINT8 *)OrderedListStatement->Value.Buffer;
>        Count  = OrderedListStatement->StorageWidth / sizeof (UINT8);
>        for (Index = 0; Index < Count; Index++) {
> -        DEBUG ((DEBUG_ERROR, "%d ", Value8[Index]));
> +        DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "%d ", Value8[Index]));
>        }
>
>        break;
> @@ -985,7 +985,7 @@ DumpOrderedListValue (
>        Value16 = (UINT16 *)OrderedListStatement->Value.Buffer;
>        Count   = OrderedListStatement->StorageWidth / sizeof (UINT16);
>        for (Index = 0; Index < Count; Index++) {
> -        DEBUG ((DEBUG_ERROR, "%d ", Value16[Index]));
> +        DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "%d ",
> Value16[Index]));
>        }
>
>        break;
> @@ -993,7 +993,7 @@ DumpOrderedListValue (
>        Value32 = (UINT32 *)OrderedListStatement->Value.Buffer;
>        Count   = OrderedListStatement->StorageWidth / sizeof (UINT32);
>        for (Index = 0; Index < Count; Index++) {
> -        DEBUG ((DEBUG_ERROR, "%d ", Value32[Index]));
> +        DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "%d ",
> Value32[Index]));
>        }
>
>        break;
> @@ -1001,7 +1001,7 @@ DumpOrderedListValue (
>        Value64 = (UINT64 *)OrderedListStatement->Value.Buffer;
>        Count   = OrderedListStatement->StorageWidth / sizeof (UINT64);
>        for (Index = 0; Index < Count; Index++) {
> -        DEBUG ((DEBUG_ERROR, "%d ", Value64[Index]));
> +        DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "%d ",
> Value64[Index]));
>        }
>
>        break;
> @@ -1009,13 +1009,13 @@ DumpOrderedListValue (
>        Value8 = (UINT8 *)OrderedListStatement->Value.Buffer;
>        Count  = OrderedListStatement->StorageWidth / sizeof (UINT8);
>        for (Index = 0; Index < Count; Index++) {
> -        DEBUG ((DEBUG_ERROR, "%d ", Value8[Index]));
> +        DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "%d ", Value8[Index]));
>        }
>
>        break;
>    }
>
> -  DEBUG ((DEBUG_ERROR, "\n"));
> +  DEBUG ((REDFISH_PLATFORM_CONFIG_DEBUG, "\n"));
>  }
>
>  /**
> --
> 2.17.1


      reply	other threads:[~2023-07-05  2:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-03 13:20 [PATCH 2/3] RedfishPkg/RedfishPlatformConfigDxe: hide debug message Nickle Wang
2023-07-05  2:18 ` Chang, Abner [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=MN2PR12MB39667CAC3C66C96FA2A84738EA2FA@MN2PR12MB3966.namprd12.prod.outlook.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