Package: usbutils
Version: 0.70-8
Severity: normal
Tags: patch

bVoltageSupport indicates the voltage between the smart card and the
reader. This is dynamic and card dependent.

I propose the following patch:

--- usbutils-0.71.orig/lsusb.c  2005-05-14 22:43:16.000000000 +0200
+++ usbutils-0.71/lsusb.c       2005-06-16 15:46:13.000000000 +0200
@@ -1207,10 +1207,12 @@
         putchar('\n');
 
         printf("        nMaxSlotIndex       %5u\n"
-                "        bVoltageSupport     %5u  %s\n",
+                "        bVoltageSupport     %5u  %s%s%s\n",
                 buf[4],
-                buf[5], (buf[5] == 1? "5.0V" : buf[5] == 2? "3.0V"
-                         : buf[5] == 3? "1.8V":"?"));
+                buf[5],
+               (buf[5] & 1) ? "5.0V " : "",
+               (buf[5] & 2) ? "3.0V " : "",
+               (buf[5] & 4) ? "1.8V " : "");
 
         us = convert_le_u32 (buf+6);
         printf("        dwProtocols         %5u ", us);


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (90, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11.11
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

Versions of packages usbutils depends on:
ii  libc6                2.3.2.ds1-22        GNU C Library: Shared libraries an
ii  libusb-0.1-4         2:0.1.10a-9.sarge.1 userspace USB programming library

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to