Received: from eggs.gnu.org ([2001:4830:134:3::10]:51314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoRIs-0001fQ-Id for qemu-devel@nongnu.org; Tue, 20 Oct 2015 03:25:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoRIp-0008Vh-N0 for qemu-devel@nongnu.org; Tue, 20 Oct 2015 03:25:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoRIp-0008Vd-H1 for qemu-devel@nongnu.org; Tue, 20 Oct 2015 03:25:47 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 3CDF9319B70 for ; Tue, 20 Oct 2015 07:25:47 +0000 (UTC) From: Gerd Hoffmann Date: Tue, 20 Oct 2015 09:25:41 +0200 Message-Id: <1445325942-7297-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1445325942-7297-1-git-send-email-kraxel@redhat.com> References: <1445325942-7297-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 2/3] usb: print device id in "info usb" monitor command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/usb/bus.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/usb/bus.c b/hw/usb/bus.c index 5f39e1e..ee6b43a 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -655,9 +655,12 @@ void hmp_info_usb(Monitor *mon, const QDict *qdict) dev = port->dev; if (!dev) continue; - monitor_printf(mon, " Device %d.%d, Port %s, Speed %s Mb/s, Product %s\n", - bus->busnr, dev->addr, port->path, usb_speed(dev->speed), - dev->product_desc); + monitor_printf(mon, " Device %d.%d, Port %s, Speed %s Mb/s, " + "Product %s%s%s\n", + bus->busnr, dev->addr, port->path, + usb_speed(dev->speed), dev->product_desc, + dev->qdev.id ? ", ID: " : "", + dev->qdev.id ?: ""); } } } -- 1.8.3.1