From f0beb6f816035e438d684cc52ae76fc4a44fc197 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 18 Nov 2019 19:28:11 +0900 Subject: [PATCH] udev: silence warning about PROGRAM+= or IMPORT+= rules Closes #14062. --- src/udev/udev-rules.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 80f0082..d215db8 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -751,10 +751,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; } @@ -766,10 +763,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; } -- 2.7.4