http://bugs.gentoo.org/435866 http://github.com/libusbx/libusbx/commit/3f513b62467d1842ec0771aaec01fde2f57bfb9c --- 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) {