Skip to contentSkip to conversation

drm/komeda: Convert logging in komeda_event.c to drm_* with

PATCH In review Abhishek Rajput 2 participants 2 messages Nov 13, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/komeda: Convert logging in komeda_event.c to drm_* with

Replace the DRM_ERROR() call in drivers/gpu/drm/arm/display/komeda/komeda_event.c with the corresponding drm_err() helper that uses the existing drm_device parameter.

Using drm_err() allows the DRM core to prefix log messages with the specific DRM device name and instance, which helps distinguish logs when multiple display controllers are present.

This change aligns komeda_event.c with the DRM TODO item:
"Convert logging to drm_* functions with drm_device parameter".

---
 drivers/gpu/drm/arm/display/komeda/komeda_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_event.c +1 -1
index 53f944e66dfc..78a4a78d1fab 100644
@@ -148,7 +148,7 @@ void komeda_print_events(struct komeda_events *evts, struct drm_device *dev)
 		komeda_sprintf(&str, ", pipes[1]: ");
 		evt_str(&str, evts->pipes[1]);
 
-		DRM_ERROR("err detect: %s\n", msg);
+		drm_err(dev, "err detect: %s\n", msg);
 		if ((err_verbosity & KOMEDA_DEV_PRINT_DUMP_STATE_ON_EVENT) &&
 		    (evts_mask & (KOMEDA_ERR_EVENTS | KOMEDA_WARN_EVENTS)))
 			drm_state_dump(dev, &p);
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Abhishek Rajput

Replace the DRM_ERROR() call in drivers/gpu/drm/arm/display/komeda/komeda_event.c with the corresponding drm_err() helper that uses the existing drm_device parameter.

Quoted 8 lines

Using drm_err() allows the DRM core to prefix log messages with the specific DRM device name and instance, which helps distinguish logs when multiple display controllers are present.

This change aligns komeda_event.c with the DRM TODO item:
"Convert logging to drm_* functions with drm_device parameter".

Best regards,
Liviu

Quoted 20 lines
---
 drivers/gpu/drm/arm/display/komeda/komeda_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_event.c +1 -1
index 53f944e66dfc..78a4a78d1fab 100644
@@ -148,7 +148,7 @@ void komeda_print_events(struct komeda_events *evts, struct drm_device *dev)
 		komeda_sprintf(&str, ", pipes[1]: ");
 		evt_str(&str, evts->pipes[1]);
 
-		DRM_ERROR("err detect: %s\n", msg);
+		drm_err(dev, "err detect: %s\n", msg);
 		if ((err_verbosity & KOMEDA_DEV_PRINT_DUMP_STATE_ON_EVENT) &&
 		    (evts_mask & (KOMEDA_ERR_EVENTS | KOMEDA_WARN_EVENTS)))
 			drm_state_dump(dev, &p);
Signature · 1 line
2.43.0
Signature · 8 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯