From: Abhishek Rajput <abhiraj21put@gmail.com>
To: liviu.dudau@arm.com, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com,
simona@ffwll.ch
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
abhiraj21put@gmail.com
Subject: [PATCH] drm/komeda: Convert logging in komeda_event.c to drm_* with
Date: Thu, 13 Nov 2025 15:36:23 +0530 [thread overview]
Message-ID: <20251113100623.162327-1-abhiraj21put@gmail.com> (raw)
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".
Signed-off-by: Abhishek Rajput <abhiraj21put@gmail.com>
---
drivers/gpu/drm/arm/display/komeda/komeda_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_event.c b/drivers/gpu/drm/arm/display/komeda/komeda_event.c
index 53f944e66dfc..78a4a78d1fab 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_event.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_event.c
@@ -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);
--
2.43.0
next reply other threads:[~2025-11-13 10:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-13 10:06 Abhishek Rajput [this message]
2025-11-13 10:39 ` Liviu Dudau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251113100623.162327-1-abhiraj21put@gmail.com \
--to=abhiraj21put@gmail.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liviu.dudau@arm.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®