]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
USB: lower "Device is not authorized for usage" message to info
authorDominique Martinet <dominique.martinet@atmark-techno.com>
Fri, 1 Aug 2025 07:52:02 +0000 (16:52 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Aug 2025 14:55:27 +0000 (16:55 +0200)
commitb12daf363f3d4ded1c12d01ab7c45b6179c586ab
treed57c4fc12969e912543f5303b4d966808c6529da
parent015709748ca921975ac1c91b40f664ca8c370eb6
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 <dominique.martinet@atmark-techno.com>
Link: https://lore.kernel.org/r/20250801-usb-auth-v1-1-a59bfdf0293f@atmark-techno.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/driver.c
drivers/usb/core/generic.c