chiark / gitweb /
check the udevdb before assigning a new %e
[elogind.git] / udev_add.c
index e9ae150180f56675bad3d1618e62833060344cd8..9420b4fe14fb633c46d2c4f2b790fcc7b412f03a 100644 (file)
@@ -1,10 +1,8 @@
 /*
  * udev-add.c
  *
- * Userspace devfs
- *
  * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com>
- *
+ * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
  *
  *     This program is free software; you can redistribute it and/or modify it
  *     under the terms of the GNU General Public License as published by the
@@ -217,7 +215,7 @@ static int create_node(struct udevice *udev, struct sysfs_class_device *class_de
 
                strlcat(linktarget, &udev->name[tail], sizeof(linktarget));
 
-               dbg("symlink(%s, %s)", linktarget, filename);
+               info("creating symlink '%s' to '%s'", filename, linktarget);
                if (!udev->test_run) {
                        unlink(filename);
                        selinux_setfscreatecon(filename, NULL, S_IFLNK);