mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-13 06:43:29 +08:00
setexpr: Silence some diagnostic messages
Neither successful match nor lack thereof should be considered an extraordinary situation. Thus, neither require printing a message. Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
77050a7398
commit
36b900e8bd
@ -215,7 +215,7 @@ int setexpr_regex_sub(char *data, uint data_size, char *nbuf, uint nbuf_size,
|
||||
|
||||
if (res == 0) {
|
||||
if (loop == 0) {
|
||||
printf("%s: No match\n", data);
|
||||
debug("%s: No match\n", data);
|
||||
return 1;
|
||||
} else {
|
||||
break;
|
||||
@ -359,7 +359,7 @@ static int regex_sub_var(const char *name, const char *r, const char *s,
|
||||
if (ret)
|
||||
return 1;
|
||||
|
||||
printf("%s=%s\n", name, data);
|
||||
debug("%s=%s\n", name, data);
|
||||
|
||||
return env_set(name, data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user