From d98458c3c486f80dbf43287fb6b285d4e3806444 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 25 Jan 2015 16:30:19 -0500 Subject: Assorted format fixes Types used for pids and uids in various interfaces are unpredictable. Too bad. Signed-off-by: Anthony G. Basile --- src/libudev/libudev-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libudev/libudev-device.c') diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index 825a0e10f4..a7446bff77 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -1686,7 +1686,7 @@ const char *udev_device_get_id_filename(struct udev_device *udev_device) udev_device->id_filename = NULL; } else if (udev_device_get_ifindex(udev_device) > 0) { /* use netdev ifindex -- n3 */ - if (asprintf(&udev_device->id_filename, "n%u", udev_device_get_ifindex(udev_device)) < 0) + if (asprintf(&udev_device->id_filename, "n%i", udev_device_get_ifindex(udev_device)) < 0) udev_device->id_filename = NULL; } else { /* -- cgit v1.2.3-54-g00ecf