From 5fc00af28a364810482c17b1c689e7d66159dc26 Mon Sep 17 00:00:00 2001
From: Ronny Nilsson <ronny.nilsson@iopsys.eu>
Date: Thu, 11 Jun 2020 13:41:14 +0200
Subject: [PATCH] brcm_fw_tool: need to print active bank only for verbose.

Otherwise the expected printouts are wrong for sysupgrade.
---
 brcm_fw_tool/image-ubi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/brcm_fw_tool/image-ubi.c b/brcm_fw_tool/image-ubi.c
index f42fe7a..f2fefb3 100644
--- a/brcm_fw_tool/image-ubi.c
+++ b/brcm_fw_tool/image-ubi.c
@@ -802,7 +802,7 @@ static int meta_manage_vols(int readonly, int forcedBank)
 	}
 
 	if(readonly) {
-		if(metaInfos[highMeta].flashBank >= 0) {
+		if(verbose && metaInfos[highMeta].flashBank >= 0) {
 			printf("Active flash bank %d\n", metaInfos[highMeta].flashBank);	// Keep the string! It is parsed by others.
 		}
 
-- 
GitLab