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:
parent
afdfa915ce
commit
8026b62dc4
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue