]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
setexpr: Silence some diagnostic messages
authorŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 24 Aug 2023 06:10:25 +0000 (08:10 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 30 Aug 2023 21:56:21 +0000 (17:56 -0400)
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>
cmd/setexpr.c

index 4d671e7ef12b17792dcdf9a892a13593d92fa637..233471f6cb7550203419ca257a75d24544194078 100644 (file)
@@ -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);
 }