diff options
author | Tom Rini <trini@konsulko.com> | 2024-03-04 10:13:01 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-03-04 10:25:47 -0500 |
commit | bd465ada0e1172910f64feac6035f2344449c381 (patch) | |
tree | e749428436685ab25dcfe109309adee6f45cdf39 /cmd/setexpr.c | |
parent | bdbbf1d7b55434973402c390a822490ce6e14994 (diff) | |
parent | 68c4d3098b9cf59a20c470df385eb5422fe32bbe (diff) |
Merge branch '2024-03-02-assorted-updates' into next
- Assorted MediaTek, ASPEED, xenguest, s5p4418 and qemu-arm fixes
- Assorted test fixes/updates/additions.
- A few bootstd/related fixes.
- Remove common.h from some files
- Drop reiserfs
- A few other assorted fixes throughout the tree.
Diffstat (limited to 'cmd/setexpr.c')
-rw-r--r-- | cmd/setexpr.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/setexpr.c b/cmd/setexpr.c index 233471f6cb7..ab76824a32b 100644 --- a/cmd/setexpr.c +++ b/cmd/setexpr.c @@ -216,14 +216,12 @@ int setexpr_regex_sub(char *data, uint data_size, char *nbuf, uint nbuf_size, if (res == 0) { if (loop == 0) { debug("%s: No match\n", data); - return 1; } else { - break; + debug("## MATCH ## %s\n", data); } + break; } - debug("## MATCH ## %s\n", data); - if (!s) return 1; @@ -540,7 +538,8 @@ U_BOOT_CMD( " - For each substring matching the regular expression <r> in the\n" " string <t>, substitute the string <s>. The result is\n" " assigned to <name>. If <t> is not supplied, use the old\n" - " value of <name>\n" + " value of <name>. If no substring matching <r> is found in <t>,\n" + " assign <t> to <name>.\n" "setexpr name sub r s [t]\n" " - Just like gsub(), but replace only the first matching substring" #endif |