summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorAlexandru Gagniuc <alex.g@adaptrum.com>2017-04-04 17:46:56 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-13 20:44:49 (GMT)
commitea168e3351cdb9a738ebfa4ad931a81b2f6d48dd (patch)
tree7c90ff12096eae7377f2939d5426e5466653437a /drivers/core
parentc47a38b47770887dc9416382207364fb62899fc2 (diff)
downloadu-boot-fsl-qoriq-ea168e3351cdb9a738ebfa4ad931a81b2f6d48dd.tar.xz
core/uclass: Print name of device in uclass_find_device_by_seq()
uclass_find_device_by_seq() prints seq and req_seq when debugging is enabled, but this information is not very useful by itself. Add the name of he driver to this information. This improves debugging as it shows which devices are being considered. Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index d94d43a..04fb45b 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -250,7 +250,7 @@ int uclass_find_device_by_seq(enum uclass_id id, int seq_or_req_seq,
return ret;
list_for_each_entry(dev, &uc->dev_head, uclass_node) {
- debug(" - %d %d\n", dev->req_seq, dev->seq);
+ debug(" - %d %d '%s'\n", dev->req_seq, dev->seq, dev->name);
if ((find_req_seq ? dev->req_seq : dev->seq) ==
seq_or_req_seq) {
*devp = dev;