chiark / gitweb /
[PATCH] udev - simple debug tweak
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 13 Jan 2004 08:51:44 +0000 (00:51 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:15 +0000 (21:13 -0700)
change the empty debug string:
  Jan 13 00:55:42 pim udev[2849]: namedev_name_device: found matching rule, 'video*' becomes ''

to something useful:
  Jan 13 01:00:23 pim udev[3234]: namedev_name_device: found matching rule, 'video*' becomes 'video/webcam%n'

namedev.c

index 4247b26..fdc6252 100644 (file)
--- a/namedev.c
+++ b/namedev.c
@@ -716,7 +716,7 @@ int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *ud
                }
 
                /* Yup, this rule belongs to us! */
-               dbg("found matching rule, '%s' becomes '%s'", dev->kernel, udev->name);
+               dbg("found matching rule, '%s' becomes '%s'", dev->kernel, dev->name);
                strfieldcpy(udev->name, dev->name);
                strfieldcpy(udev->symlink, dev->symlink);
                goto found;