parent
a1db5bbc97
commit
f0beb6f816
|
@ -751,10 +751,7 @@ static int parse_token(UdevRules *rules, const char *key, char *attr, UdevRuleOp
|
||||||
if (op == OP_REMOVE)
|
if (op == OP_REMOVE)
|
||||||
return log_token_invalid_op(rules, key);
|
return log_token_invalid_op(rules, key);
|
||||||
if (!is_match) {
|
if (!is_match) {
|
||||||
if (op == OP_ASSIGN)
|
log_token_debug(rules, "%s key takes '==' or '!=' operator, assuming '=='.", key);
|
||||||
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);
|
|
||||||
op = OP_MATCH;
|
op = OP_MATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -766,10 +763,7 @@ static int parse_token(UdevRules *rules, const char *key, char *attr, UdevRuleOp
|
||||||
if (op == OP_REMOVE)
|
if (op == OP_REMOVE)
|
||||||
return log_token_invalid_op(rules, key);
|
return log_token_invalid_op(rules, key);
|
||||||
if (!is_match) {
|
if (!is_match) {
|
||||||
if (op == OP_ASSIGN)
|
log_token_debug(rules, "%s key takes '==' or '!=' operator, assuming '=='.", key);
|
||||||
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);
|
|
||||||
op = OP_MATCH;
|
op = OP_MATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue