summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-12-10 20:24:18 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-12-17 14:28:47 -0500
commitfdb139feedcc7f2930f561a7e643d144e13f9d5e (patch)
treedcf817b6a114542525fbeace7f8aeaee86660e47 /src/libudev
parentc01838a8db63fba188dbc3bdf17e6697f41c3918 (diff)
use correct format types
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/libudev-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c
index 16ee1f4be3..825a0e10f4 100644
--- a/src/libudev/libudev-device.c
+++ b/src/libudev/libudev-device.c
@@ -139,7 +139,7 @@ static int udev_device_set_ifindex(struct udev_device *udev_device, int ifindex)
char num[32];
udev_device->ifindex = ifindex;
- snprintf(num, sizeof(num), "%u", ifindex);
+ snprintf(num, sizeof(num), "%d", ifindex);
udev_device_add_property(udev_device, "IFINDEX", num);
return 0;
}