mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] media: uvcvideo: Log driver load in uvc_probe function
@ 2025-08-01 14:53 Imene Jaziri
  2025-08-01 15:04 ` Laurent Pinchart
  0 siblings, 1 reply; 6+ messages in thread
From: Imene Jaziri @ 2025-08-01 14:53 UTC (permalink / raw)
  To: linux-media; +Cc: hansg, linux-kernel, laurent.pinchart, Imene Jaziri

Add a pr_info() in the uvc_probe function to trace when the
uvcvideo driver is loaded. This is for learning purposes.

Signed-off-by: Imene Jaziri <imenjazirii18@gmail.com>
---
 drivers/media/usb/uvc/uvc_driver.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index da24a655ab68..4e5d1d636640 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -2170,7 +2170,6 @@ static int uvc_probe(struct usb_interface *intf,
 		(const struct uvc_device_info *)id->driver_info;
 	int function;
 	int ret;
-
 	/* Allocate memory for the device and initialize it. */
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
 	if (dev == NULL)
@@ -2188,7 +2187,7 @@ static int uvc_probe(struct usb_interface *intf,
 	dev->info = info ? info : &uvc_quirk_none;
 	dev->quirks = uvc_quirks_param == -1
 		    ? dev->info->quirks : uvc_quirks_param;
-
+	pr_info("I changed uvcvideo driver in the Linux Kernel\n");
 	if (id->idVendor && id->idProduct)
 		uvc_dbg(dev, PROBE, "Probing known UVC device %s (%04x:%04x)\n",
 			udev->devpath, id->idVendor, id->idProduct);
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-07 19:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-01 14:53 [PATCH] media: uvcvideo: Log driver load in uvc_probe function Imene Jaziri
2025-08-01 15:04 ` Laurent Pinchart
2025-08-07  7:53   ` Benjamin Mugnier
2025-08-07  8:14     ` Laurent Pinchart
2025-08-07 18:40       ` Shuah Khan
2025-08-07 19:05         ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®