aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2023-08-24 08:10:25 +0200
committerTom Rini <trini@konsulko.com>2023-08-30 17:56:21 -0400
commit36b900e8bd57fec7b4c200a368883e1e59e4f27f (patch)
treedcfd69d6c2e7c25003767a28841f1effe7404048 /cmd
parent77050a7398129b05888e9eb531bdf36b03041ed7 (diff)
downloadu-boot-36b900e8bd57fec7b4c200a368883e1e59e4f27f.zip
u-boot-36b900e8bd57fec7b4c200a368883e1e59e4f27f.tar.gz
u-boot-36b900e8bd57fec7b4c200a368883e1e59e4f27f.tar.bz2
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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/setexpr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/setexpr.c b/cmd/setexpr.c
index 4d671e7..233471f 100644
--- a/cmd/setexpr.c
+++ b/cmd/setexpr.c
@@ -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);
}