On Thu, Jul 03, 2014 at 05:36:37PM +0800, Qu Wenruo wrote:
> --- a/btrfs-find-root.c
> +++ b/btrfs-find-root.c
> @@ -96,7 +96,10 @@ static struct btrfs_root *open_ctree_broken(int fd, const
> char *device)
> ret = btrfs_read_dev_super(fs_devices->latest_bdev,
> disk_super, fs_info->super_bytenr, 1);
> if (ret) {
> - printk("No valid btrfs found\n");
> + if (ret == -ENOENT)
> + printk("No valid btrfs found\n");
Please use fprintf(stderr, ...) for error messages, until we have a
better message logging helpers.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html