[PATCH 3/3] devinfo: display device bus name

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Sep 25 09:25:09 EDT 2012


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 drivers/base/driver.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index a81a9ba..6c8fd05 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);
 
-- 
1.7.10.4




More information about the barebox mailing list