diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2003-01-10 23:23:59 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2003-01-10 23:23:59 +0000 |
commit | 6c7116106ad8d73e6f32aa8a076f7f3d5d5044fe (patch) | |
tree | 3c6f2d6817df26e3198a438f3916804ba89562bb /packaging/linux-hotplug | |
parent | c87facdab746b7e64c80e7836bf5cca2f3cbdfe3 (diff) | |
download | libgphoto2-6c7116106ad8d73e6f32aa8a076f7f3d5d5044fe.tar.gz |
* The class based matcher line was erronously putting out
a device class matcher, instead of an interface matcher.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6059 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'packaging/linux-hotplug')
-rw-r--r-- | packaging/linux-hotplug/print-usb-usermap.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packaging/linux-hotplug/print-usb-usermap.c b/packaging/linux-hotplug/print-usb-usermap.c index 66bfa13d0..0631a25ec 100644 --- a/packaging/linux-hotplug/print-usb-usermap.c +++ b/packaging/linux-hotplug/print-usb-usermap.c @@ -119,11 +119,15 @@ static int print_usb_usermap(const char *usermap_script, const int add_comments) if (flags != 0) { printf ("# %s\n", a.model); + /* The first 3 lone bytes are the device class. + * the second 3 lone bytes are the interface class. + * for PTP we want the interface class. + */ printf ("%-20s " "0x%04x 0x%04x 0x%04x 0x0000 " - "0x0000 0x%02x 0x%02x " - "0x%02x 0x00 0x00 " - "0x00 0x00000000\n", + "0x0000 0x00 0x00 " + "0x00 0x%02x 0x%02x " + "0x%02x 0x00000000\n", usermap_script, flags, a.usb_vendor, a.usb_product, class, subclass, proto); |