diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-17 09:11:49 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-17 09:11:49 +0200 |
commit | 3481e8235a9fea5d23ed0dd38bb456280cbb12bf (patch) | |
tree | 0a7c19c547f153b921aef3467e8c394363016b85 | |
parent | dfc650c8ceb3307ee96517d303f20a7e9a3faee6 (diff) | |
download | libmtp-3481e8235a9fea5d23ed0dd38bb456280cbb12bf.tar.gz |
mtp-hotplug: fix casing in hwdb patterns
systemd-hwdb is case sensitive and uses uppercase hexadecimal digits.
This means that any hwdb entries with digits 'a' and above were not
matched properly.
-rw-r--r-- | util/mtp-hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/mtp-hotplug.c b/util/mtp-hotplug.c index ede5d0a..5e52c51 100644 --- a/util/mtp-hotplug.c +++ b/util/mtp-hotplug.c @@ -255,7 +255,7 @@ int main (int argc, char **argv) break; case style_hwdb: printf("# %s %s\n", entry->vendor, entry->product); - printf("usb:v%04xp%04x*\n", entry->vendor_id, entry->product_id); + printf("usb:v%04Xp%04X*\n", entry->vendor_id, entry->product_id); printf(" ID_MEDIA_PLAYER=1\n"); printf(" ID_MTP_DEVICE=1\n"); printf("\n"); |