Skip to contentSkip to conversation

drm/gud: Remove unnecessary logging

PATCH In review Ruben Wauters 2 participants 2 messages Jul 21, 2025 – Aug 11, 2025 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ruben Wauters

author maintainer
#1 lore raw

PATCH 1/1 drm/gud: Remove unnecessary logging

The debug logging in gud_disconnect() adds zero detail and is unnecessary, as it only prints the function name.

The same functionality can be achieved by using ftrace, and is highlighted by checkpatch, stating the same.

This patch removes the debug log in the gud_disconnect() function.

---
 drivers/gpu/drm/gud/gud_drv.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/gud/gud_drv.c +0 -2
index 5385a2126e45..b52a12cbba3e 100644
@@ -620,8 +620,6 @@ static void gud_disconnect(struct usb_interface *interface)
 	struct gud_device *gdrm = usb_get_intfdata(interface);
 	struct drm_device *drm = &gdrm->drm;
 
-	drm_dbg(drm, "%s:\n", __func__);
-
 	drm_kms_helper_poll_fini(drm);
 	drm_dev_unplug(drm);
 	drm_atomic_helper_shutdown(drm);
Signature · 1 line
2.49.1
maintainer Reviewed-by on v1 1/1
#2 lore raw

Hi

Am 22.07.25 um 01:22 schrieb Ruben Wauters:

I've been on vacation, hence the delay.

Quoted 9 lines

The debug logging in gud_disconnect() adds zero detail and is unnecessary, as it only prints the function name.

The same functionality can be achieved by using ftrace, and is highlighted by checkpatch, stating the same.

This patch removes the debug log in the gud_disconnect() function.

Thanks for the patch. I'll add it to drm-misc-next.

Best regards
Thomas

Quoted 17 lines
---
  drivers/gpu/drm/gud/gud_drv.c | 2 --
  1 file changed, 2 deletions(-)
drivers/gpu/drm/gud/gud_drv.c +0 -2
index 5385a2126e45..b52a12cbba3e 100644
@@ -620,8 +620,6 @@ static void gud_disconnect(struct usb_interface *interface)
  	struct gud_device *gdrm = usb_get_intfdata(interface);
  	struct drm_device *drm = &gdrm->drm;
 
-	drm_dbg(drm, "%s:\n", __func__);
-
  	drm_kms_helper_poll_fini(drm);
  	drm_dev_unplug(drm);
  	drm_atomic_helper_shutdown(drm);
Signature · 7 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)