Re: [edk2] [PATCH 1/5] MdeModulePkg/UsbBusDxe: log warning message at DEBUG_WARN level

2017-09-04 Thread Zeng, Star
Reviewed-by: Star Zeng 

-Original Message-
From: Laszlo Ersek [mailto:ler...@redhat.com] 
Sent: Tuesday, September 5, 2017 4:14 AM
To: edk2-devel-01 
Cc: Zeng, Star ; Dong, Eric 
Subject: [PATCH 1/5] MdeModulePkg/UsbBusDxe: log warning message at DEBUG_WARN 
level

"UsbSelectConfig: failed to connect driver %r, ignored" is an error message, 
but it states at once that the error condition will not affect the control 
flow. Degrade the report to DEBUG_WARN.

Cc: Star Zeng 
Cc: Eric Dong 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek 
---
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
index b0e6b835ac24..62645d9bdedb 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
@@ -440,7 +440,11 @@ UsbSelectConfig (
 Status = UsbConnectDriver (UsbIf);
 
 if (EFI_ERROR (Status)) {
-  DEBUG ((EFI_D_ERROR, "UsbSelectConfig: failed to connect driver %r, 
ignored\n", Status));
+  DEBUG ((
+DEBUG_WARN,
+"UsbSelectConfig: failed to connect driver %r, ignored\n",
+Status
+));
 }
   }
 
--
2.14.1.3.gb7cf6e02401b


___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


[edk2] [PATCH 1/5] MdeModulePkg/UsbBusDxe: log warning message at DEBUG_WARN level

2017-09-04 Thread Laszlo Ersek
"UsbSelectConfig: failed to connect driver %r, ignored" is an error
message, but it states at once that the error condition will not affect
the control flow. Degrade the report to DEBUG_WARN.

Cc: Star Zeng 
Cc: Eric Dong 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek 
---
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
index b0e6b835ac24..62645d9bdedb 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
@@ -440,7 +440,11 @@ UsbSelectConfig (
 Status = UsbConnectDriver (UsbIf);
 
 if (EFI_ERROR (Status)) {
-  DEBUG ((EFI_D_ERROR, "UsbSelectConfig: failed to connect driver %r, 
ignored\n", Status));
+  DEBUG ((
+DEBUG_WARN,
+"UsbSelectConfig: failed to connect driver %r, ignored\n",
+Status
+));
 }
   }
 
-- 
2.14.1.3.gb7cf6e02401b


___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel