Thread (6 messages) 6 messages, 2 authors, 2021-10-30
STALE1692d

[PATCH 1/3] Docs: usb: update err() to pr_err() and replace __FILE__

From: Philipp Hortmann <hidden>
Date: 2021-10-29 19:39:59
Also in: linux-usb, lkml
Subsystem: documentation, the rest · Maintainers: Jonathan Corbet, Linus Torvalds

update err() to pr_err() and replace __FILE__

Signed-off-by: Philipp Hortmann <redacted>
---
 Documentation/driver-api/usb/writing_usb_driver.rst | 4 ++--
 1 file 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 2176297e5765..5c29e5bdbe88 100644
--- a/Documentation/driver-api/usb/writing_usb_driver.rst
+++ b/Documentation/driver-api/usb/writing_usb_driver.rst
@@ -91,8 +91,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", skel_driver.name, result);
 		    return -1;
 	    }
 
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help