[Xfce4-commits] <thunar-volman:jannis/port-to-udev> Add some debug output

Jannis Pohlmann noreply at xfce.org
Sun Jul 25 19:44:30 CEST 2010


Updating branch refs/heads/jannis/port-to-udev
         to e6833035f20332b23e4e76f3eb96117680628bb8 (commit)
       from 45335a4707272417b3c5fbb28ffe3dd6f4926d1d (commit)

commit e6833035f20332b23e4e76f3eb96117680628bb8
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Wed Jul 21 22:55:24 2010 +0200

    Add some debug output

 thunar-volman/tvm-usb-device.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/thunar-volman/tvm-usb-device.c b/thunar-volman/tvm-usb-device.c
index 943f362..02b1529 100644
--- a/thunar-volman/tvm-usb-device.c
+++ b/thunar-volman/tvm-usb-device.c
@@ -45,17 +45,23 @@ tvm_usb_device_added (TvmContext *context)
 
   g_return_if_fail (context != NULL);
 
+  g_debug ("usb device added");
+
   /* collect device information */
   driver = g_udev_device_get_property (context->device, "DRIVER");
   is_camera = g_udev_device_get_property_as_boolean (context->device, "ID_GPHOTO2");
 
   if (is_camera)
     {
+      g_debug ("is camera");
+
       enabled_property = "/autophoto/enabled";
       command_property = "/autophoto/command";
     }
   else if (g_strcmp0 (driver, "usblp") == 0)
     {
+      g_debug ("is printer");
+
       enabled_property = "/autoprinter/enabled";
       command_property = "/autoprinter/command";
     }



More information about the Xfce4-commits mailing list