[PATCH RFC 1/9] drm/bridge: terminate the lines of the bridge state dump

From: Dmitry Baryshkov

Date: Thu Oct 08 2026 - 09:15:55 EST


The bridge state is dumped as a single line: the bus configuration
headers, format codes and flags all run together, followed on the same
line by the state of the next object. drm_printf_indent() does not
terminate the line it prints, and unlike its other users
drm_bridge_atomic_print_priv_state() does not add a newline to its
format strings.

Add the missing newlines.

Fixes: 4a7a146f1cc6 ("drm/bridge: Implement atomic_print_state")
Assisted-by: LLM
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
---
drivers/gpu/drm/drm_bridge.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
index e7f9e6d58927..0f37e3ade016 100644
--- a/drivers/gpu/drm/drm_bridge.c
+++ b/drivers/gpu/drm/drm_bridge.c
@@ -565,12 +565,12 @@ drm_bridge_atomic_print_priv_state(struct drm_printer *p,
else
drm_printf(p, "bridge: %ps\n", bridge->funcs);

- drm_printf_indent(p, 1, "input bus configuration:");
- drm_printf_indent(p, 2, "code: %04x", state->input_bus_cfg.format);
- drm_printf_indent(p, 2, "flags: %08x", state->input_bus_cfg.flags);
- drm_printf_indent(p, 1, "output bus configuration:");
- drm_printf_indent(p, 2, "code: %04x", state->output_bus_cfg.format);
- drm_printf_indent(p, 2, "flags: %08x", state->output_bus_cfg.flags);
+ drm_printf_indent(p, 1, "input bus configuration:\n");
+ drm_printf_indent(p, 2, "code: %04x\n", state->input_bus_cfg.format);
+ drm_printf_indent(p, 2, "flags: %08x\n", state->input_bus_cfg.flags);
+ drm_printf_indent(p, 1, "output bus configuration:\n");
+ drm_printf_indent(p, 2, "code: %04x\n", state->output_bus_cfg.format);
+ drm_printf_indent(p, 2, "flags: %08x\n", state->output_bus_cfg.flags);
}

static const struct drm_private_state_funcs drm_bridge_priv_state_funcs = {

--
2.47.3