public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Wu, Hao A" <hao.a.wu@intel.com>
To: "mikuback@linux.microsoft.com" <mikuback@linux.microsoft.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Wang, Jian J" <jian.j.wang@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	"Ni, Ray" <ray.ni@intel.com>
Subject: Re: [PATCH v1 1/1] MdeModulePkg/XhciSched: Fix missing DEBUG arguments
Date: Thu, 4 Nov 2021 00:31:11 +0000	[thread overview]
Message-ID: <DM6PR11MB4025CA33BCF3F53D604B31FECA8D9@DM6PR11MB4025.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20211103151625.2992-1-mikuback@linux.microsoft.com>

> -----Original Message-----
> From: mikuback@linux.microsoft.com <mikuback@linux.microsoft.com>
> Sent: Wednesday, November 3, 2021 11:16 PM
> To: devel@edk2.groups.io
> Cc: Wang, Jian J <jian.j.wang@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Wu, Hao A <hao.a.wu@intel.com>; Ni, Ray
> <ray.ni@intel.com>
> Subject: [PATCH v1 1/1] MdeModulePkg/XhciSched: Fix missing DEBUG
> arguments
> 
> From: Michael Kubacki <michael.kubacki@microsoft.com>
> 
> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3662
> 
> Two DEBUG macros in XhciDxe/XhciSched.c are missing the argument that
> should be passed for the print specifier.
> 
> In addition, this change updates the print level to "DEBUG_ERROR"
> and prints the status as well.


Reviewed-by: Hao A Wu <hao.a.wu@intel.com>

Best Regards,
Hao Wu


> 
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Hao A Wu <hao.a.wu@intel.com>
> Cc: Ray Ni <ray.ni@intel.com>
> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
> ---
>  MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
> b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
> index 7cbc9a8502ea..6fcd2be6277c 100644
> --- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
> +++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
> @@ -2299,7 +2299,7 @@ XhcInitializeDeviceSlot (
>      DEBUG ((EFI_D_INFO, "    Address %d assigned successfully\n",
> DeviceAddress));
>      Xhc->UsbDevContext[SlotId].XhciDevAddr = DeviceAddress;
>    } else {
> -    DEBUG ((DEBUG_INFO, "    Address %d assigned unsuccessfully\n"));
> +    DEBUG ((DEBUG_ERROR, "    Slot %d address not assigned successfully.
> Status = %r\n", SlotId, Status));
>      XhcDisableSlotCmd (Xhc, SlotId);
>    }
> 
> @@ -2512,7 +2512,7 @@ XhcInitializeDeviceSlot64 (
>      DEBUG ((EFI_D_INFO, "    Address %d assigned successfully\n",
> DeviceAddress));
>      Xhc->UsbDevContext[SlotId].XhciDevAddr = DeviceAddress;
>    } else {
> -    DEBUG ((DEBUG_INFO, "    Address %d assigned unsuccessfully\n"));
> +    DEBUG ((DEBUG_ERROR, "    Slot %d address not assigned successfully.
> Status = %r\n", SlotId, Status));
>      XhcDisableSlotCmd64 (Xhc, SlotId);
>    }
> 
> --
> 2.28.0.windows.1


  reply	other threads:[~2021-11-04  0:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-03 15:16 [PATCH v1 1/1] MdeModulePkg/XhciSched: Fix missing DEBUG arguments Michael Kubacki
2021-11-04  0:31 ` Wu, Hao A [this message]
2021-11-04  5:59 ` 回复: " gaoliming
2021-11-08  4:13   ` [edk2-devel] " Wu, Hao A

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=DM6PR11MB4025CA33BCF3F53D604B31FECA8D9@DM6PR11MB4025.namprd11.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