[PATCH 1/1] fs: btrfs: avoid superfluous messages

Output like the following is quite irritating:
=> bootefi hello Scanning disk mmc2.blk... No valid Btrfs found Bad magic number for SquashFS image. ** Unrecognized filesystem type ** Scanning disk mmc1.blk... No valid Btrfs found Bad magic number for SquashFS image. ** Unrecognized filesystem type ** Scanning disk mmc0.blk... No valid Btrfs found Bad magic number for SquashFS image. ** Unrecognized filesystem type **
It is expected that most partitions don't contain a Btrfs. This is only worth a debug message.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com --- fs/btrfs/disk-io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 12f9579fcf..7a4fb0d259 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ #include <common.h> #include <fs_internal.h> +#include <log.h> #include <uuid.h> #include <memalign.h> #include "kernel-shared/btrfs_tree.h" @@ -918,7 +919,7 @@ static int btrfs_scan_fs_devices(struct blk_desc *desc,
ret = btrfs_scan_one_device(desc, part, fs_devices, &total_devs); if (ret) { - fprintf(stderr, "No valid Btrfs found\n"); + log_debug("No valid Btrfs found\n"); return ret; } return 0;

On Thu, 16 Sep 2021 10:02:45 +0200 Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
Heinrich, Simon already sent patch https://lore.kernel.org/u-boot/20210818214022.4.I3eb71025472bbb050bcf9a0a192...
Tom, could you apply Simon's version?
Marek

On Thu, Sep 16, 2021 at 02:01:28PM +0200, Marek Behún wrote:
On Thu, 16 Sep 2021 10:02:45 +0200 Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
Heinrich, Simon already sent patch https://lore.kernel.org/u-boot/20210818214022.4.I3eb71025472bbb050bcf9a0a192...
Tom, could you apply Simon's version?
Yes, I should probably do another round of -next patches today and I'll grab that series.
participants (3)
-
Heinrich Schuchardt
-
Marek Behún
-
Tom Rini