diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-01-25 02:18:13 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-01-25 02:18:13 +0100 |
commit | ad27f5b3962d4cb1e4fcc25d3d0c7d0c81abc82a (patch) | |
tree | 7f113c73f81aedd8b1650de328bb6d61fd36065e /udev_add.c | |
parent | a9bd2ed84a7b0871c281adc8226f12ae46da4de0 (diff) |
udevtest: add udev_rules_apply_format() to RUN keys
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_add.c')
-rw-r--r-- | udev_add.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/udev_add.c b/udev_add.c index 2c66a0ba8d..6de2858313 100644 --- a/udev_add.c +++ b/udev_add.c @@ -135,16 +135,14 @@ static int create_node(struct udevice *udev) 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; - 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) { |