Linux-EROFS Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] erofs-utils: Print configuration only at INFO debug level
@ 2022-02-09  0:53 Peter Collingbourne via Linux-erofs
  2022-02-09  0:53 ` [PATCH] erofs-utils: Print program name and version to stdout Peter Collingbourne via Linux-erofs
  2022-02-09  1:47 ` [PATCH] erofs-utils: Print configuration only at INFO debug level Gao Xiang
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Collingbourne via Linux-erofs @ 2022-02-09  0:53 UTC (permalink / raw)
  To: xiang; +Cc: Peter Collingbourne, linux-erofs

The information printed by erofs_show_config is not useful for ordinary
users of the program, and it certainly doesn't count as a warning,
so let's only print it at the INFO debug level or greater.

Signed-off-by: Peter Collingbourne <pcc@google.com>
---
 lib/config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/config.c b/lib/config.c
index 363dcc5..08deb6f 100644
--- a/lib/config.c
+++ b/lib/config.c
@@ -34,7 +34,7 @@ void erofs_show_config(void)
 {
 	const struct erofs_configure *c = &cfg;
 
-	if (c->c_dbg_lvl < EROFS_WARN)
+	if (c->c_dbg_lvl < EROFS_INFO)
 		return;
 	erofs_dump("\tc_version:           [%8s]\n", c->c_version);
 	erofs_dump("\tc_dbg_lvl:           [%8d]\n", c->c_dbg_lvl);
-- 
2.35.0.263.gb82422642f-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-09  1:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-09  0:53 [PATCH] erofs-utils: Print configuration only at INFO debug level Peter Collingbourne via Linux-erofs
2022-02-09  0:53 ` [PATCH] erofs-utils: Print program name and version to stdout Peter Collingbourne via Linux-erofs
2022-02-09  1:48   ` Gao Xiang
2022-02-09  1:47 ` [PATCH] erofs-utils: Print configuration only at INFO debug level Gao Xiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox