From 41db12ddb9c4186d5d36e0e6dc1f280d27d1c7c3 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Thu, 3 Jan 2013 20:51:50 -0800 Subject: MTP: Review Feedback: Fix warnings. --- monitor/mtp/gmtpvolumemonitor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'monitor') diff --git a/monitor/mtp/gmtpvolumemonitor.c b/monitor/mtp/gmtpvolumemonitor.c index 569b0c83..c83233bf 100644 --- a/monitor/mtp/gmtpvolumemonitor.c +++ b/monitor/mtp/gmtpvolumemonitor.c @@ -141,7 +141,8 @@ static void gudev_add_device (GMtpVolumeMonitor *monitor, GUdevDevice *device, gboolean do_emit) { GMtpVolume *volume; - const char *usb_bus_num, *usb_device_num, *uri; + const char *usb_bus_num, *usb_device_num; + char *uri; GFile *activation_mount_root; usb_bus_num = g_udev_device_get_property (device, "BUSNUM"); @@ -156,7 +157,7 @@ gudev_add_device (GMtpVolumeMonitor *monitor, GUdevDevice *device, gboolean do_e return; } - g_debug ("gudev_add_device: device %s (bus: %i, device: %i)", + g_debug ("gudev_add_device: device %s (bus: %s, device: %s)", g_udev_device_get_device_file (device), usb_bus_num, usb_device_num); -- cgit v1.2.3