aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/usbconfig/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/usbconfig/dump.c')
-rw-r--r--usr.sbin/usbconfig/dump.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/usbconfig/dump.c b/usr.sbin/usbconfig/dump.c
index 7ee89dac99f8..52dd132095dc 100644
--- a/usr.sbin/usbconfig/dump.c
+++ b/usr.sbin/usbconfig/dump.c
@@ -225,13 +225,17 @@ dump_device_info(struct libusb20_device *pdev, uint8_t show_ifdrv)
{
char buf[128];
uint8_t n;
+ unsigned int usage;
- printf("%s, cfg=%u md=%s spd=%s pwr=%s\n",
+ usage = libusb20_dev_get_power_usage(pdev);
+
+ printf("%s, cfg=%u md=%s spd=%s pwr=%s (%umA)\n",
libusb20_dev_get_desc(pdev),
libusb20_dev_get_config_index(pdev),
dump_mode(libusb20_dev_get_mode(pdev)),
dump_speed(libusb20_dev_get_speed(pdev)),
- dump_power_mode(libusb20_dev_get_power_mode(pdev)));
+ dump_power_mode(libusb20_dev_get_power_mode(pdev)),
+ usage);
if (!show_ifdrv)
return;