summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-05-07 22:57:20 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-05-07 22:57:20 +0200
commitd0d7b8d08539579b4dfee0ff9d0a0457720c7eb5 (patch)
tree5613632f7a7aa75b51971e051eab408843a3dd46 /udev
parent5a2cfd1599aa1300e26c2de22b1158c626bc0139 (diff)
add info message when empty NAME is given
Diffstat (limited to 'udev')
-rw-r--r--udev/udev-rules.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index 59fdb71853..b58ea8c680 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -1469,12 +1469,15 @@ static int add_rule(struct udev_rules *rules, char *line,
rule_add_key(&rule_tmp, TK_M_NAME, op, value, NULL);
} else {
if (strcmp(value, "%k") == 0) {
- err(rules->udev, "NAME=\"%%k\" is ignored because it breaks kernel supplied names, "
+ err(rules->udev, "NAME=\"%%k\" is ignored, because it breaks kernel supplied names, "
"please remove it from %s:%u\n", filename, lineno);
continue;
}
- if (value[0] == '\0')
+ if (value[0] == '\0') {
+ info(rules->udev, "NAME=\"\" is ignored, because udev will not delete any device nodes, "
+ "please remove it from %s:%u\n", filename, lineno);
continue;
+ }
rule_add_key(&rule_tmp, TK_A_NAME, op, value, NULL);
}
rule_tmp.rule.rule.flags = 1;