/[gentoo-x86]/sys-apps/usbutils/files/usbutils-006-libusbx-1.0.13.patch
Gentoo

Diff of /sys-apps/usbutils/files/usbutils-006-libusbx-1.0.13.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1http://bugs.gentoo.org/435866 1http://bugs.gentoo.org/435866
2http://github.com/libusbx/libusbx/commit/3f513b62467d1842ec0771aaec01fde2f57bfb9c 2http://github.com/libusbx/libusbx/commit/3f513b62467d1842ec0771aaec01fde2f57bfb9c
3 3
4--- lsusb.c 4--- lsusb.c
5+++ lsusb.c 5+++ lsusb.c
6@@ -437,7 +437,7 @@ 6@@ -437,7 +437,11 @@
7 printf(" Remote Wakeup\n"); 7 printf(" Remote Wakeup\n");
8 if (config->bmAttributes & 0x10) 8 if (config->bmAttributes & 0x10)
9 printf(" Battery Powered\n"); 9 printf(" Battery Powered\n");
10- printf(" MaxPower %5umA\n", config->MaxPower * 2); 10+ #if defined(LIBUSBX_API_VERSION) && (LIBUSBX_API_VERSION >= 0x01000100)
11+ printf(" MaxPower %5umA\n", config->bMaxPower * 2); 11+ printf(" MaxPower %5umA\n", config->bMaxPower * 2);
12+ #else
13 printf(" MaxPower %5umA\n", config->MaxPower * 2);
14+ #endif
12 15
13 /* avoid re-ordering or hiding descriptors for display */ 16 /* avoid re-ordering or hiding descriptors for display */
14 if (config->extra_length) { 17 if (config->extra_length) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20