summaryrefslogtreecommitdiffstats
path: root/src/udev
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-03-27 10:00:00 +0200
committerDmitry V. Levin <ldv@strace.io>2023-03-27 12:00:30 +0200
commitebb00082d8f595ab59ccf92556397b6eaa04b133 (patch)
treeb549af4cb7f878453452e3f1d0446b8e043ba74b /src/udev
parentudev-rules: extend the check for conflicting expressions (diff)
downloadsystemd-ebb00082d8f595ab59ccf92556397b6eaa04b133.tar.xz
systemd-ebb00082d8f595ab59ccf92556397b6eaa04b133.zip
udev-rules: fix grammar in diagnostics about lines that have no effect
Fixes: 25de7aa7b90c ("udev: modernize udev-rules.c")
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-rules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index c234c265ee..f7a1bb3bb0 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -1232,7 +1232,7 @@ static int rule_add_line(UdevRuleFile *rule_file, const char *line_str, unsigned
}
if (rule_line->type == 0) {
- log_line_warning(rule_line, "The line takes no effect, ignoring.");
+ log_line_warning(rule_line, "The line has no effect, ignoring.");
return 0;
}
@@ -1264,7 +1264,7 @@ static void rule_resolve_goto(UdevRuleFile *rule_file) {
line->goto_label = NULL;
if ((line->type & ~(LINE_HAS_LABEL|LINE_IS_REFERENCED)) == 0) {
- log_line_notice(line, "The line takes no effect any more, dropping");
+ log_line_notice(line, "The line has no effect any more, dropping.");
/* LINE_IS_REFERENCED implies LINE_HAS_LABEL */
if (line->type & LINE_HAS_LABEL)
udev_rule_line_clear_tokens(line);
@@ -1411,7 +1411,7 @@ static void udev_check_conflicts_duplicates(UdevRuleLine *line) {
}
if (new_conflicts) {
conflicts = new_conflicts;
- log_line_error(line, "conflicting match expressions, the line takes no effect");
+ log_line_error(line, "conflicting match expressions, the line has no effect");
}
if (conflicts && duplicates)
return;