9
0
Fork 0

usb/core: make print dev like linux lsusb

and busnum start at 1

as this
Bus 001 Device 002: ID 0b95:7720 AX88772

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2011-09-19 14:15:44 +02:00 committed by Sascha Hauer
parent afdfa915ce
commit 8026b62dc4
1 changed files with 6 additions and 5 deletions

View File

@ -78,13 +78,14 @@ static LIST_HEAD(usb_device_list);
static void print_usb_device(struct usb_device *dev)
{
printf("%s: %04x:%04x %s\n", dev->dev.name,
dev->descriptor.idVendor,
dev->descriptor.idProduct,
dev->prod);
printf("Bus %03d Device %03d: ID %04x:%04x %s\n",
dev->host->busnum, dev->devnum,
dev->descriptor.idVendor,
dev->descriptor.idProduct,
dev->prod);
}
static int host_busnum;
static int host_busnum = 1;
int usb_register_host(struct usb_host *host)
{