chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udevtest: add udev_rules_apply_format() to RUN keys
[elogind.git]
/
udev_add.c
diff --git
a/udev_add.c
b/udev_add.c
index 2c66a0ba8d071733a4d69923cca38f573472e97e..6de285831359bf7bac46d69e9b8cc4acc64ec55d 100644
(file)
--- a/
udev_add.c
+++ b/
udev_add.c
@@
-135,16
+135,14
@@
static int create_node(struct udevice *udev)
gid = lookup_group(udev->group);
}
gid = lookup_group(udev->group);
}
- if (!udev->test_run) {
- info("creating device node '%s'", filename);
+ info("creating device node '%s', major = '%d', minor = '%d', " "mode = '%#o', uid = '%d', gid = '%d'",
+ filename, major(udev->devt), minor(udev->devt), udev->mode, uid, gid);
+
+ if (!udev->test_run)
if (udev_make_node(udev, filename, udev->devt, udev->mode, uid, gid) != 0)
goto error;
if (udev_make_node(udev, filename, udev->devt, udev->mode, uid, gid) != 0)
goto error;
- setenv("DEVNAME", filename, 1);
- } else {
- info("creating device node '%s', major = '%d', minor = '%d', "
- "mode = '%#o', uid = '%d', gid = '%d'", filename,
- major(udev->devt), minor(udev->devt), udev->mode, uid, gid);
- }
+
+ setenv("DEVNAME", filename, 1);
/* create all_partitions if requested */
if (udev->partitions) {
/* create all_partitions if requested */
if (udev->partitions) {