[Pcsclite-cvs-commit] r5676 - /trunk/PCSC/src/hotplug_libudev.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sun Mar 27 10:41:34 UTC 2011


Author: rousseau
Date: Sun Mar 27 10:41:19 2011
New Revision: 5676

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5676
Log:
Log an error if udev_device_get_devnode() fails

Modified:
    trunk/PCSC/src/hotplug_libudev.c

Modified: trunk/PCSC/src/hotplug_libudev.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/hotplug_libudev.c?rev=5676&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_libudev.c (original)
+++ trunk/PCSC/src/hotplug_libudev.c Sun Mar 27 10:41:19 2011
@@ -446,8 +446,11 @@
 
 		devpath = udev_device_get_devnode(parent);
 		if (!devpath)
+		{
 			/* the device disapeared? */
+			Log1(PCSC_LOG_ERROR, "udev_device_get_devnode() failed");
 			continue;
+		}
 
 		driver = get_driver(parent, devpath, &classdriver);
 		if (NULL == driver)
@@ -571,8 +574,11 @@
 			"usb_device");
 		devpath = udev_device_get_devnode(parent);
 		if (!devpath)
+		{
 			/* the device disapeared? */
+			Log1(PCSC_LOG_ERROR, "udev_device_get_devnode() failed");
 			continue;
+		}
 
 		HPAddDevice(dev, parent, devpath);
 




More information about the Pcsclite-cvs-commit mailing list