diff options
author | Saravana Kannan <saravanak@google.com> | 2024-10-24 09:13:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-05 16:03:27 +0300 |
commit | 298c2af4788ed027a42c2bab0f210219825fb5fd (patch) | |
tree | ab4664a23e4abb563921b5b8ba8464cfdec45edf /drivers/base/core.c | |
parent | 74ffe43bad3af3e2a786ca017c205555ba87ebad (diff) | |
download | linux-298c2af4788ed027a42c2bab0f210219825fb5fd.tar.xz |
drivers: core: fw_devlink: Make the error message a bit more useful
It would make it easier to debugs issues similar to the ones
reported[1][2] recently where some devices didn't have the fwnode set.
[1] - https://lore.kernel.org/all/7b995947-4540-4b17-872e-e107adca4598@notapiano/
[2] - https://lore.kernel.org/all/20240910130019.35081-1-jonathanh@nvidia.com/
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20241024061347.1771063-4-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 633fb4283282..3a870662bb6c 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -2173,8 +2173,8 @@ static int fw_devlink_create_devlink(struct device *con, } if (con != sup_dev && !device_link_add(con, sup_dev, flags)) { - dev_err(con, "Failed to create device link (0x%x) with %s\n", - flags, dev_name(sup_dev)); + dev_err(con, "Failed to create device link (0x%x) with supplier %s for %pfwf\n", + flags, dev_name(sup_dev), link->consumer); ret = -EINVAL; } |