aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/generic.c
diff options
context:
space:
mode:
authorDominique Martinet <[email protected]>2025-08-01 07:52:02 +0000
committerGreg Kroah-Hartman <[email protected]>2025-08-13 14:55:27 +0000
commitb12daf363f3d4ded1c12d01ab7c45b6179c586ab (patch)
treed57c4fc12969e912543f5303b4d966808c6529da /drivers/usb/core/generic.c
parentusb: renesas_usbhs: Add support for RZ/T2H SoC (diff)
downloadkernel-b12daf363f3d4ded1c12d01ab7c45b6179c586ab.tar.gz
kernel-b12daf363f3d4ded1c12d01ab7c45b6179c586ab.zip
USB: lower "Device is not authorized for usage" message to info
This message is not a useful error in practice: - when using tools such as usbguard, the message is always printed but it does not presume anything regarding the actual device acceptance (later 'authorized to connect' message is at info level, and not displayed on console) - this can be a source of flood if a usb device connection is flaky - ... and it is only displayed as the result of an admin action (modifying authorized_default), working as intended, so not likely to be an error. This is still useful to know when looking at usb devices problems, so info seems appropriate for this class of messages together with the later eventual authorized message. Signed-off-by: Dominique Martinet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/core/generic.c')
-rw-r--r--drivers/usb/core/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/generic.c b/drivers/usb/core/generic.c
index 9c6ae5e1198b..a48994e11ef3 100644
--- a/drivers/usb/core/generic.c
+++ b/drivers/usb/core/generic.c
@@ -243,7 +243,7 @@ int usb_generic_driver_probe(struct usb_device *udev)
* with the driver core and lets interface drivers bind to them.
*/
if (udev->authorized == 0)
- dev_err(&udev->dev, "Device is not authorized for usage\n");
+ dev_info(&udev->dev, "Device is not authorized for usage\n");
else {
c = usb_choose_configuration(udev);
if (c >= 0) {