diff options
author | Philipp Hortmann <philipp.g.hortmann@gmail.com> | 2021-10-30 13:24:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 14:54:58 +0100 |
commit | 7ef0d85c87d15f62e0e8ae675ac3c027221bb72e (patch) | |
tree | 2b7a9b0659d023cb8b937fbaf13fc0834b05b8e1 /Documentation/driver-api/usb | |
parent | usb: gadget: at91_udc: Convert to GPIO descriptors (diff) | |
download | linux-7ef0d85c87d15f62e0e8ae675ac3c027221bb72e.tar.xz linux-7ef0d85c87d15f62e0e8ae675ac3c027221bb72e.zip |
Docs: usb: update err() to pr_err() and replace __FILE__
update err() to pr_err() and replace __FILE__
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/2c477cb0cf5214ae9abf9a4a9de28fcb38f90070.1635591623.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/driver-api/usb')
-rw-r--r-- | Documentation/driver-api/usb/writing_usb_driver.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/driver-api/usb/writing_usb_driver.rst b/Documentation/driver-api/usb/writing_usb_driver.rst index b43e1ce49f0e..0093dea4e55a 100644 --- a/Documentation/driver-api/usb/writing_usb_driver.rst +++ b/Documentation/driver-api/usb/writing_usb_driver.rst @@ -94,8 +94,8 @@ usually in the driver's init function, as shown here:: /* register this driver with the USB subsystem */ result = usb_register(&skel_driver); if (result < 0) { - err("usb_register failed for the "__FILE__ "driver." - "Error number %d", result); + pr_err("usb_register failed for the %s driver. Error number %d\n", + skel_driver.name, result); return -1; } |