driver core: fw_devlink: Improve logs for cycle detection
authorSaravana Kannan <saravanak@google.com>
Fri, 2 Feb 2024 09:56:35 +0000 (01:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Feb 2024 15:12:33 +0000 (07:12 -0800)
commit6e7ad1aebb4fc9fed0217dd50ef6e58a53f17d81
tree21d8888758ea010611cb81697330d3c1eaa7aa9f
parent6442d79d880cf7a2fff18779265d657fef0cce4c
driver core: fw_devlink: Improve logs for cycle detection

The links in a cycle are not all logged in a consistent manner or not
logged at all. Make them consistent by adding a "cycle:" string and log all
the link in the cycles (even the child ==> parent dependency) so that it's
easier to debug cycle detection code. Also, mark the start and end of a
cycle so it's easy to tell when multiple cycles are logged back to back.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Tested-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20240202095636.868578-4-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c