Skip to contentSkip to conversation

mkfs: keep summary output with --quiet

PATCH New Garv 1 participant 1 message Sep 29

lore
Share & tools
lore

Garv

author
#0 lore raw

PATCH 1/1 mkfs: keep summary output with --quiet

---
 mkfs/main.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
mkfs/main.c +2 -4
index d9b4e22..4cc1bf9 100644
@@ -1551,10 +1551,8 @@ static int mkfs_parse_options_cfg(struct erofs_importer_params *params,
 			return err;
 	}
 
-	if (quiet) {
-		cfg.c_dbg_lvl = EROFS_ERR;
+	if (quiet)
 		cfg.c_showprogress = false;
-	}
 
 	if (pclustersize_max) {
 		if (pclustersize_max < (1U << mkfs_blkszbits) ||
@@ -1743,7 +1741,7 @@ static void erofs_mkfs_showsummaries(void)
 	char uuid_str[37] = {};
 	char *incr = incremental_mode ? "new" : "total";
 
-	if (!(cfg.c_dbg_lvl > EROFS_ERR && cfg.c_showprogress))
+	if (cfg.c_dbg_lvl <= EROFS_ERR)
 		return;
 
 	erofs_uuid_unparse_lower(g_sbi.uuid, uuid_str);
Signature · 1 line
2.53.0