diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-18 21:40:26 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-16 13:19:25 -0400 |
commit | 64acd46a82f06dfae7a181437e256a4194e612d8 (patch) | |
tree | e39c7ba0c3b0333d80e187219f338d9af8623680 /fs/btrfs | |
parent | 7dcc2f7e7a9d45cce8f7b1728cd42df46a840957 (diff) | |
download | u-boot-64acd46a82f06dfae7a181437e256a4194e612d8.tar.gz u-boot-64acd46a82f06dfae7a181437e256a4194e612d8.tar.bz2 u-boot-64acd46a82f06dfae7a181437e256a4194e612d8.zip |
btrfs: Suppress the message about missing filesystem
This message comes up a lot when scanning filesystems. It suggests to the
user that there is some sort of error, but in fact there is no reason to
expect that a particular partition has a btrfs filesystem. Other
filesystems don't print this error.
Turn it into a debug message.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/disk-io.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 12f9579fcf..eb7736d53e 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -918,7 +918,11 @@ 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"); + /* + * Avoid showing this when probing for a possible Btrfs + * + * fprintf(stderr, "No valid Btrfs found\n"); + */ return ret; } return 0; @@ -1007,7 +1011,7 @@ struct btrfs_fs_info *open_ctree_fs_info(struct blk_desc *desc, disk_super = fs_info->super_copy; ret = btrfs_read_dev_super(desc, part, disk_super); if (ret) { - printk("No valid btrfs found\n"); + debug("No valid btrfs found\n"); goto out_devices; } |