[openwrt/openwrt] base-files: change logging for upgrade on fwtool

LEDE Commits lede-commits at lists.infradead.org
Sun May 16 16:01:42 PDT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e0c6506158fa4bba3f2b8ed3b56264099513eee2

commit e0c6506158fa4bba3f2b8ed3b56264099513eee2
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Wed Feb 3 10:24:02 2021 +0100

    base-files: change logging for upgrade on fwtool
    
    Remove vn call in favour of v call. This commit serves as preparation
    for removing the v function call.
    
    Signed-off-by: Florian Eckert <fe at dev.tdt.de>
    [alter slightly to prevent double space after colon]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 package/base-files/files/lib/upgrade/fwtool.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/base-files/files/lib/upgrade/fwtool.sh b/package/base-files/files/lib/upgrade/fwtool.sh
index 3826bf5c30..a45f3bbc73 100644
--- a/package/base-files/files/lib/upgrade/fwtool.sh
+++ b/package/base-files/files/lib/upgrade/fwtool.sh
@@ -81,12 +81,12 @@ fwtool_check_image() {
 	done
 
 	v "Device $device not supported by this image"
-	vn "Supported devices:"
+	local devices="Supported devices:"
 	for k in $dev_keys; do
 		json_get_var dev "$k"
-		_vn " $dev"
+		devices="$devices $dev"
 	done
-	_v
+	v "$devices"
 
 	return 1
 }



More information about the lede-commits mailing list