summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-25 20:55:39 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-04 15:19:12 +0200
commitddba7e606bc7a6b3715d6c123c0a9b708a6b8776 (patch)
tree4a5f830b78317cd099810551898c4ca36a97826e /drivers/base
parent3c5327e660bc840deb82030062c91e469528dd94 (diff)
downloadbarebox-ddba7e606bc7a6b3715d6c123c0a9b708a6b8776.tar.gz
barebox-ddba7e606bc7a6b3715d6c123c0a9b708a6b8776.tar.xz
devinfo: display device bus name
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index a81a9ba685..6c8fd0576c 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -423,9 +423,12 @@ static int do_devinfo(int argc, char *argv[])
res->start, resource_size(res));
}
- printf("driver: %s\n\n", dev->driver ?
+ printf("driver: %s\n", dev->driver ?
dev->driver->name : "none");
+ printf("bus: %s\n\n", dev->bus ?
+ dev->bus->name : "none");
+
if (dev->driver)
dev->driver->info(dev);