From: kay.sievers@vrfy.org Date: Sun, 13 Mar 2005 06:14:49 +0000 (+0100) Subject: [PATCH] add a test and simplify debug statement X-Git-Tag: 055~13 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38285d23d702258d3b219532a9874555e797a292;p=systemd [PATCH] add a test and simplify debug statement --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ee77d845..8895f462 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -9,12 +9,13 @@ THE PLACE= key is gone. It can be replaced by an ID= for a long time, cause we walk up the chain of physical devices to find a match. The KEY="" format supports '=', '==', '!=,' , '+=' now. This makes it -easier to skip certain devices without composing rules with weird character -class negations like: +easy to skip certain attribute matches without composing rules with weird +character class negations like: KERNEL="[!s][!c][!d]*" -this can be replaced by: +this can now be replaced with: KERNEL!="scd*" -The simple '=' is still supported, but the rules should be converted if -possible, to be better human-readable. +The current simple '=' is still supported, and should work as it does today, +but existing rules should be converted if possible, to be better readable. + diff --git a/test/udev-test.pl b/test/udev-test.pl index 8d66536b..ebceccec 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1159,6 +1159,16 @@ EOF conf => < "test for whitespace between the operator", + subsys => "block", + devpath => "/block/sda/sda1", + exp_name => "true", + conf => <node, &udev_rule_list); - udev_rule_dump(tmp_rule); - return 0; -} - -void udev_rule_dump(struct udev_rule *rule) -{ dbg("name='%s', symlink='%s', bus='%s', id='%s', " "sysfs_file[0]='%s', sysfs_value[0]='%s', " - "kernel='%s', program='%s', result='%s'" - "owner='%s', group='%s', mode=%#o", + "kernel='%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].file, rule->sysfs_pair[0].value, - rule->kernel, rule->program, rule->result, - rule->owner, rule->group, rule->mode); -} + rule->kernel, rule->program, rule->result, rule->owner, rule->group, rule->mode, + rule->partitions, rule->ignore_remove, rule->ignore_device, rule->last_rule); -void udev_rule_list_dump(void) -{ - struct udev_rule *rule; - - list_for_each_entry(rule, &udev_rule_list, node) - udev_rule_dump(rule); + return 0; } static int get_key(char **line, char **key, enum key_operation *operation, char **value)