drm/debugfs: fix printk format for bridge index
[ Upstream commit 72443c730b7a7b5670a921ea928e17b9b99bd934 ] idx is an unsigned int, use %u for printk-style strings. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20250214-drm-assorted-cleanups-v7-1-88ca5827d7af@bootlin.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ba5a998f84
commit
f04612890c
@@ -743,7 +743,7 @@ static int bridges_show(struct seq_file *m, void *data)
|
||||
unsigned int idx = 0;
|
||||
|
||||
drm_for_each_bridge_in_chain(encoder, bridge) {
|
||||
drm_printf(&p, "bridge[%d]: %ps\n", idx++, bridge->funcs);
|
||||
drm_printf(&p, "bridge[%u]: %ps\n", idx++, bridge->funcs);
|
||||
drm_printf(&p, "\ttype: [%d] %s\n",
|
||||
bridge->type,
|
||||
drm_get_connector_type_name(bridge->type));
|
||||
|
||||
Reference in New Issue
Block a user