blob: 688b2b0e826d03ae35b5b6e58dd241f624206c3b [file] [log] [blame]
--- lsusb.c
+++ lsusb.c
@@ -437,7 +437,11 @@
printf(" Remote Wakeup\n");
if (config->bmAttributes & 0x10)
printf(" Battery Powered\n");
+ #if defined(LIBUSBX_API_VERSION) && (LIBUSBX_API_VERSION >= 0x01000100)
+ printf(" MaxPower %5umA\n", config->bMaxPower * 2);
+ #else
printf(" MaxPower %5umA\n", config->MaxPower * 2);
+ #endif
/* avoid re-ordering or hiding descriptors for display */
if (config->extra_length) {