public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/1] fs/erofs: avoid noisy messages
@ 2023-08-17  7:01 Heinrich Schuchardt
  2023-08-17  9:15 ` Gao Xiang
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2023-08-17  7:01 UTC (permalink / raw)
  To: Huang Jianan; +Cc: linux-erofs, u-boot, Heinrich Schuchardt

The erofs file system creates noisy messages when it is not used:

    => host bind 0 disk.img
    => part list host 0
    cannot find valid erofs superblock
    cannot find valid erofs superblock

    Partition Map for HOST device 0  --   Partition Type: EFI

If there is not erofs file system, this only deserves a debug message.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 fs/erofs/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/erofs/super.c b/fs/erofs/super.c
index d33926281b..d405d488fd 100644
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@ -68,14 +68,14 @@ int erofs_read_superblock(void)
 
 	ret = erofs_blk_read(data, 0, erofs_blknr(sizeof(data)));
 	if (ret < 0) {
-		erofs_err("cannot read erofs superblock: %d", ret);
+		erofs_dbg("cannot read erofs superblock: %d", ret);
 		return -EIO;
 	}
 	dsb = (struct erofs_super_block *)(data + EROFS_SUPER_OFFSET);
 
 	ret = -EINVAL;
 	if (le32_to_cpu(dsb->magic) != EROFS_SUPER_MAGIC_V1) {
-		erofs_err("cannot find valid erofs superblock");
+		erofs_dbg("cannot find valid erofs superblock");
 		return ret;
 	}
 
-- 
2.40.1


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

* Re: [PATCH 1/1] fs/erofs: avoid noisy messages
  2023-08-17  7:01 [PATCH 1/1] fs/erofs: avoid noisy messages Heinrich Schuchardt
@ 2023-08-17  9:15 ` Gao Xiang
  0 siblings, 0 replies; 2+ messages in thread
From: Gao Xiang @ 2023-08-17  9:15 UTC (permalink / raw)
  To: Heinrich Schuchardt, Huang Jianan; +Cc: u-boot, linux-erofs

Hi Heinrich,

On 2023/8/17 15:01, Heinrich Schuchardt wrote:
> The erofs file system creates noisy messages when it is not used:
> 
>      => host bind 0 disk.img
>      => part list host 0
>      cannot find valid erofs superblock
>      cannot find valid erofs superblock
> 
>      Partition Map for HOST device 0  --   Partition Type: EFI
> 
> If there is not erofs file system, this only deserves a debug message.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>

There was already a patch to address that:
https://lore.kernel.org/u-boot/20230813142708.361456-13-sjg@chromium.org/

Anyway, I'm fine with either patch.  For this patch,
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>

Thanks,
Gao Xiang

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

end of thread, other threads:[~2023-08-17  9:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17  7:01 [PATCH 1/1] fs/erofs: avoid noisy messages Heinrich Schuchardt
2023-08-17  9:15 ` Gao Xiang

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