Blame systemd-typecast-usbids.patch
|
|
a88494 |
From 68b2813a0b6dcf8ff8f8eb36aa225ae90661e67e Mon Sep 17 00:00:00 2001
|
|
|
a88494 |
From: Fedora systemd team <systemd-maint@redhat.com>
|
|
|
a88494 |
Date: Thu, 22 Feb 2018 12:45:31 +0100
|
|
|
a88494 |
Subject: [PATCH] Typecast USB IDs
|
|
|
a88494 |
|
|
|
a88494 |
Signed-off-by: Fedora systemd team <systemd-maint@redhat.com>
|
|
|
a88494 |
---
|
|
|
a88494 |
src/udev/udev-builtin-hwdb.c | 2 +-
|
|
|
a88494 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a88494 |
|
|
|
a88494 |
diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c
|
|
|
a88494 |
index ca7f7c2..d3556e4 100644
|
|
|
a88494 |
--- a/src/udev/udev-builtin-hwdb.c
|
|
|
a88494 |
+++ b/src/udev/udev-builtin-hwdb.c
|
|
|
a88494 |
@@ -77,7 +77,7 @@ static const char *modalias_usb(struct udev_device *dev, char *s, size_t size) {
|
|
|
a88494 |
pn = strtol(p, NULL, 16);
|
|
|
a88494 |
if (pn <= 0)
|
|
|
a88494 |
return NULL;
|
|
|
a88494 |
- snprintf(s, size, "usb:v%04Xp%04X*", vn, pn);
|
|
|
a88494 |
+ snprintf(s, size, "usb:v%04Xp%04X*", (uint16_t)vn, (uint16_t)pn);
|
|
|
a88494 |
return s;
|
|
|
a88494 |
}
|
|
|
a88494 |
|
|
|
a88494 |
--
|
|
|
a88494 |
2.16.2
|
|
|
a88494 |
|