summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2013-01-03 20:51:50 -0800
committerPhilip Langdale <philipl@overt.org>2013-01-11 20:31:54 -0800
commit41db12ddb9c4186d5d36e0e6dc1f280d27d1c7c3 (patch)
treea7dc5b2c548bf962a9df6d761ac0c28e644eb242 /monitor
parent5ae18e30fab90ceabe051c6789791dae13014c3d (diff)
MTP: Review Feedback: Fix warnings.
Diffstat (limited to 'monitor')
-rw-r--r--monitor/mtp/gmtpvolumemonitor.c5
1 files changed, 3 insertions, 2 deletions
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);