mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-20 14:03:39 +03:00
parent
a1db5bbc97
commit
f0beb6f816
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user