Skip to content

Commit 306c895

Browse files
Leander Kiewegtdz
authored andcommitted
drm/tiny/bochs: Convert dev_err() to drm_err()
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> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/r/20250818113530.187440-1-kieweg.leander@gmail.com
1 parent 685e8da commit 306c895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/tiny/bochs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static int bochs_hw_init(struct bochs_device *bochs)
252252
}
253253
bochs->ioports = 1;
254254
} else {
255-
dev_err(dev->dev, "I/O ports are not supported\n");
255+
drm_err(dev, "I/O ports are not supported\n");
256256
return -EIO;
257257
}
258258

0 commit comments

Comments
 (0)