[PATCH] erofs-utils: Print configuration only at INFO debug level
Gao Xiang
hsiangkao at linux.alibaba.com
Wed Feb 9 12:47:55 AEDT 2022
On Tue, Feb 08, 2022 at 04:53:06PM -0800, Peter Collingbourne wrote:
> 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 at google.com>
Applied, thanks!
Thanks,
Gao Xiang
> ---
> 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
More information about the Linux-erofs
mailing list