Skip to content

Commit 36b900e

Browse files
Łukasz Stelmachtrini
Łukasz Stelmach
authored andcommitted
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
1 parent 77050a7 commit 36b900e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/setexpr.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ int setexpr_regex_sub(char *data, uint data_size, char *nbuf, uint nbuf_size,
215215

216216
if (res == 0) {
217217
if (loop == 0) {
218-
printf("%s: No match\n", data);
218+
debug("%s: No match\n", data);
219219
return 1;
220220
} else {
221221
break;
@@ -359,7 +359,7 @@ static int regex_sub_var(const char *name, const char *r, const char *s,
359359
if (ret)
360360
return 1;
361361

362-
printf("%s=%s\n", name, data);
362+
debug("%s=%s\n", name, data);
363363

364364
return env_set(name, data);
365365
}

0 commit comments

Comments
 (0)