From: Laurent Pinchart Date: Wed, 20 Aug 2025 14:00:21 +0000 (+0300) Subject: media: mc: Improve unconnected pads debugging message in link exploration X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=16428e2449ab96cce27be6ab17b750b404c76c7c;p=users%2Fhch%2Fmisc.git media: mc: Improve unconnected pads debugging message in link exploration When exploring links, a message is printed to indicate unconnected pads being added. The message prints the entity name only. Print the origin pad number as well to help with debugging pipeline start issues. While at it, get the entity name from origin->entity instead of local->entity. Both point to the same entity, but the former conveys the meaning better. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/mc/mc-entity.c b/drivers/media/mc/mc-entity.c index 307920c8b354..9519a537bfa2 100644 --- a/drivers/media/mc/mc-entity.c +++ b/drivers/media/mc/mc-entity.c @@ -682,8 +682,8 @@ done: return 0; dev_dbg(walk->mdev->dev, - "media pipeline: adding unconnected pads of '%s'\n", - local->entity->name); + "media pipeline: adding unconnected pads of '%s' reachable from pad %u\n", + origin->entity->name, origin->index); media_entity_for_each_pad(origin->entity, local) { /*