mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
drm/bridge: prefer drm_printf_indent() over inline \t
We have a helper drm_printf_indent() for tab indenting the prints. It makes the actual strings more readable, and highlights the indented parts better in source. Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> Link: https://patch.msgid.link/20260408082211.3040194-2-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
0c44d8dc6d
commit
9a096b8879
|
|
@ -1614,18 +1614,17 @@ static void drm_bridge_debugfs_show_bridge(struct drm_printer *p,
|
|||
|
||||
drm_printf(p, "bridge[%u]: %ps\n", idx, bridge->funcs);
|
||||
|
||||
drm_printf(p, "\trefcount: %u%s\n", refcount,
|
||||
lingering ? " [lingering]" : "");
|
||||
drm_printf_indent(p, 1, "refcount: %u%s\n", refcount,
|
||||
lingering ? " [lingering]" : "");
|
||||
|
||||
drm_printf(p, "\ttype: [%d] %s\n",
|
||||
bridge->type,
|
||||
drm_get_connector_type_name(bridge->type));
|
||||
drm_printf_indent(p, 1, "type: [%d] %s\n", bridge->type,
|
||||
drm_get_connector_type_name(bridge->type));
|
||||
|
||||
/* The OF node could be freed after drm_bridge_remove() */
|
||||
if (bridge->of_node && !lingering)
|
||||
drm_printf(p, "\tOF: %pOFfc\n", bridge->of_node);
|
||||
drm_printf_indent(p, 1, "OF: %pOFfc\n", bridge->of_node);
|
||||
|
||||
drm_printf(p, "\tops: [0x%x]", bridge->ops);
|
||||
drm_printf_indent(p, 1, "ops: [0x%x]", bridge->ops);
|
||||
if (bridge->ops & DRM_BRIDGE_OP_DETECT)
|
||||
drm_puts(p, " detect");
|
||||
if (bridge->ops & DRM_BRIDGE_OP_EDID)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user