diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-11-18 19:28:11 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-19 11:07:31 +0100 |
commit | aa1fc791c7a10402b420c4e94deed5ca2c33ae57 (patch) | |
tree | 87cc3ff5c4f6ac3a6512a76fd1d8c1a06619c4d2 | |
parent | b9a619bb67387aa87e5fa916516eef4ced81f625 (diff) | |
download | systemd-aa1fc791c7a10402b420c4e94deed5ca2c33ae57.tar.gz |
udev: silence warning about PROGRAM+= or IMPORT+= rules
Closes #14062.
(cherry picked from commit f0beb6f816035e438d684cc52ae76fc4a44fc197)
-rw-r--r-- | src/udev/udev-rules.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 6d60a412da..5e6be85441 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -742,10 +742,7 @@ static int parse_token(UdevRules *rules, const char *key, char *attr, UdevRuleOp if (op == OP_REMOVE) return log_token_invalid_op(rules, key); if (!is_match) { - if (op == OP_ASSIGN) - log_token_debug(rules, "Operator '=' is specified to %s key, assuming '=='.", key); - else - log_token_warning(rules, "%s key takes '==' or '!=' operator, assuming '==', but please fix it.", key); + log_token_debug(rules, "%s key takes '==' or '!=' operator, assuming '=='.", key); op = OP_MATCH; } @@ -757,10 +754,7 @@ static int parse_token(UdevRules *rules, const char *key, char *attr, UdevRuleOp if (op == OP_REMOVE) return log_token_invalid_op(rules, key); if (!is_match) { - if (op == OP_ASSIGN) - log_token_debug(rules, "Operator '=' is specified to %s key, assuming '=='.", key); - else - log_token_warning(rules, "%s key takes '==' or '!=' operator, assuming '==', but please fix it.", key); + log_token_debug(rules, "%s key takes '==' or '!=' operator, assuming '=='.", key); op = OP_MATCH; } |