- struct udev_rule *tmp_rule;
-
- tmp_rule = malloc(sizeof(*tmp_rule));
- if (tmp_rule == NULL)
- return -ENOMEM;
- memcpy(tmp_rule, rule, sizeof(struct udev_rule));
- list_add_tail(&tmp_rule->node, &rules_list);
-
- dbg("name='%s', symlink='%s', bus='%s', id='%s', "
- "sysfs_file[0]='%s', sysfs_value[0]='%s', "
- "kernel_name='%s', program='%s', result='%s', "
- "owner='%s', group='%s', mode=%#o, "
- "all_partions=%u, ignore_remove=%u, ignore_device=%u, last_rule=%u",
- rule->name, rule->symlink, rule->bus, rule->id,
- rule->sysfs_pair[0].name, rule->sysfs_pair[0].value,
- rule->kernel_name, rule->program, rule->result, rule->owner, rule->group, rule->mode,
- rule->partitions, rule->ignore_remove, rule->ignore_device, rule->last_rule);