mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 3/3] devinfo: display device bus name
Date: Tue, 25 Sep 2012 15:25:09 +0200	[thread overview]
Message-ID: <1348579509-8255-3-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <1348579509-8255-1-git-send-email-plagnioj@jcrosoft.com>

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2012-09-25 13:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-25 13:21 [PATCH 0/3] final bus cleanup Jean-Christophe PLAGNIOL-VILLARD
2012-09-25 13:25 ` [PATCH 1/3] fb: move add param to bus probe Jean-Christophe PLAGNIOL-VILLARD
2012-09-25 13:25   ` [PATCH 2/3] switch all platform_bus device/driver registering to platform_driver/device_register Jean-Christophe PLAGNIOL-VILLARD
2012-09-25 13:25   ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-09-26  7:51 ` [PATCH 0/3] final bus cleanup Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1348579509-8255-3-git-send-email-plagnioj@jcrosoft.com \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox