]> Git Repo - linux.git/commit
drm/print: Add generic drm dev printk function
authorMichal Wajdeczko <[email protected]>
Fri, 17 May 2024 16:34:04 +0000 (18:34 +0200)
committerRodrigo Vivi <[email protected]>
Thu, 6 Jun 2024 18:46:15 +0000 (14:46 -0400)
commit178c0a33c421d9716e734645a5d0da271bf4695f
tree442ed6c25257e0a988930b42a241507f7b22e18d
parent0d5edcc60abe9a02501f01e032bfa2432c1364de
drm/print: Add generic drm dev printk function

We already have some drm printk functions that need to duplicate
a code to get a similar format of the final result, for example:

  [ ] 0000:00:00.0: [drm:foo] bar
  [ ] 0000:00:00.0: [drm] foo bar
  [ ] 0000:00:00.0: [drm] *ERROR* foo

Add a generic __drm_dev_vprintk() function that can format the
final message like all other existing function do and allows us
to keep the formatting code in one place.

Cc: Jani Nikula <[email protected]>
Signed-off-by: Michal Wajdeczko <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Rodrigo Vivi <[email protected]>
drivers/gpu/drm/drm_print.c
This page took 0.048768 seconds and 4 git commands to generate.