mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/tiny/bochs: Convert dev_err() to drm_err()
@ 2025-08-18 11:35 Leander Kieweg
  2025-09-08 11:29 ` Leander Kieweg
  2025-09-08 12:16 ` Thomas Zimmermann
  0 siblings, 2 replies; 3+ messages in thread
From: Leander Kieweg @ 2025-08-18 11:35 UTC (permalink / raw)
  To: Gerd Hoffmann, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Leander Kieweg, virtualization, dri-devel, linux-kernel

The DRM subsystem has a set of preferred, prefixed logging functions
(drm_info, drm_warn, drm_err) which improve debuggability by including
the driver and function name in the log output.

As part of the ongoing effort to modernize logging calls,
convert a dev_err() call in the bochs hardware initialization
function to its drm_err() equivalent.

This work was suggested by the DRM TODO list.

Signed-off-by: Leander Kieweg <kieweg.leander@gmail.com>
---
 drivers/gpu/drm/tiny/bochs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c
index 8d3b7c4fa6a4..d2d5e9f1269f 100644
--- a/drivers/gpu/drm/tiny/bochs.c
+++ b/drivers/gpu/drm/tiny/bochs.c
@@ -252,7 +252,7 @@ static int bochs_hw_init(struct bochs_device *bochs)
 		}
 		bochs->ioports = 1;
 	} else {
-		dev_err(dev->dev, "I/O ports are not supported\n");
+		drm_err(dev, "I/O ports are not supported\n");
 		return -EIO;
 	}
 
-- 
2.43.0


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

* Re: [PATCH] drm/tiny/bochs: Convert dev_err() to drm_err()
  2025-08-18 11:35 [PATCH] drm/tiny/bochs: Convert dev_err() to drm_err() Leander Kieweg
@ 2025-09-08 11:29 ` Leander Kieweg
  2025-09-08 12:16 ` Thomas Zimmermann
  1 sibling, 0 replies; 3+ messages in thread
From: Leander Kieweg @ 2025-09-08 11:29 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Leander Kieweg, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, virtualization,
	dri-devel, linux-kernel

Gentle ping on this patch.

Is this change still of interest? I'm happy to make any changes or
rebase if needed.

Thanks,
Leander Kieweg

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

* Re: [PATCH] drm/tiny/bochs: Convert dev_err() to drm_err()
  2025-08-18 11:35 [PATCH] drm/tiny/bochs: Convert dev_err() to drm_err() Leander Kieweg
  2025-09-08 11:29 ` Leander Kieweg
@ 2025-09-08 12:16 ` Thomas Zimmermann
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Zimmermann @ 2025-09-08 12:16 UTC (permalink / raw)
  To: Leander Kieweg, Gerd Hoffmann, Maarten Lankhorst, Maxime Ripard,
	David Airlie, Simona Vetter
  Cc: virtualization, dri-devel, linux-kernel

Hi

Am 18.08.25 um 13:35 schrieb Leander Kieweg:
> The DRM subsystem has a set of preferred, prefixed logging functions
> (drm_info, drm_warn, drm_err) which improve debuggability by including
> the driver and function name in the log output.
>
> As part of the ongoing effort to modernize logging calls,
> convert a dev_err() call in the bochs hardware initialization
> function to its drm_err() equivalent.
>
> This work was suggested by the DRM TODO list.
>
> Signed-off-by: Leander Kieweg <kieweg.leander@gmail.com>

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>

I'll soon add the patch to our tree.

Best regards
Thomas

> ---
>   drivers/gpu/drm/tiny/bochs.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c
> index 8d3b7c4fa6a4..d2d5e9f1269f 100644
> --- a/drivers/gpu/drm/tiny/bochs.c
> +++ b/drivers/gpu/drm/tiny/bochs.c
> @@ -252,7 +252,7 @@ static int bochs_hw_init(struct bochs_device *bochs)
>   		}
>   		bochs->ioports = 1;
>   	} else {
> -		dev_err(dev->dev, "I/O ports are not supported\n");
> +		drm_err(dev, "I/O ports are not supported\n");
>   		return -EIO;
>   	}
>   

-- 
--
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)



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

end of thread, other threads:[~2025-09-08 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-18 11:35 [PATCH] drm/tiny/bochs: Convert dev_err() to drm_err() Leander Kieweg
2025-09-08 11:29 ` Leander Kieweg
2025-09-08 12:16 ` Thomas Zimmermann

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®