Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2142537iof; Tue, 7 Jun 2022 21:10:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycxwk+JYKcAd1X8mXFo0Bj8300dZQjAccagvqgJtU54KyNhir33+KUtPFXQzQlrEP1t/OT X-Received: by 2002:a17:90a:a096:b0:1df:58d7:5b20 with SMTP id r22-20020a17090aa09600b001df58d75b20mr35377288pjp.212.1654661410148; Tue, 07 Jun 2022 21:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654661410; cv=none; d=google.com; s=arc-20160816; b=fL6xe1SYdCV0IBFiUrUd2o6jg4Ja0d6XcptT+GJupQFUgSwNau0HbVhX29brRxw9VJ 5YLjnvECFkFxWBlfEHkF3ICAk5UN1aq46hUkRBvJpIO4VCCGl+SLCRX8zNp0kjzGQMhS /u9BW9ZxjJwA8Ai9PX4+eF54uaUifY8w11l1nOPAxmOqev3ZLDqJlEX5p9wVd5/I9vNy HxFkdPZkAAFwBSZtYjEsK4kVMmgvOgZ7WZT4zAdlFobhZAnJIwcR7LqsC/5miI+ZlZTp DzZfxMvcKhS5/9lpyqj7VrSkZVeBQNE4NtBjXP/GfcM60vhPrf3Z8jxc+hSO4/R/ndXM qMdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L4UtMI9F6iISdcIfndkK+CBvO0NbLBzVJBZR3CNaB64=; b=Kv1n08Z36cFBhRulnY2kPc5hveghhnd8Ot8EWZOlB+NW7ZND5L0i2W31YYfm7tDGJm 70mg0u1kDa01yhxn01xknE2v8gE6jtLMAjaZvCVTKssOlOU6PHSLTFYLT8jS5GB79XOD fz/pUc/nmLa5MX6NOHQpPutGP7oKRU+4XB1y6BZyzZ70gcMcNx/hyEBMoy+BZNC/ovDZ stjszcK9vrawhbjAsx2xTjCliBuocQq1MngiUnzG88Fh5yiQOkLjCoKJ9OHeN2zPGPFf k19KqOk65yN45ItefK9OQ2jk6FC/yR0hhXCH4eAjuiPXQYXPxCdr9AjvR/bnkvMUV6Hg UJfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ObmsK28s; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cm18-20020a056a00339200b0051bc46f9672si23355804pfb.45.2022.06.07.21.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:10:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ObmsK28s; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 095E5227371; Tue, 7 Jun 2022 20:41:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345774AbiFGRTl (ORCPT + 99 others); Tue, 7 Jun 2022 13:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345665AbiFGRS6 (ORCPT ); Tue, 7 Jun 2022 13:18:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9C7E104CA0; Tue, 7 Jun 2022 10:18:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CF2E6617C0; Tue, 7 Jun 2022 17:18:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D33ACC3411C; Tue, 7 Jun 2022 17:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622335; bh=WAyyZx2J8HfaO41wbYGlGqnM4QH0PYCw1Nv1dgzzd8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ObmsK28sGO4YG2Bpc86TVVQs53rf9u2yDwrPFjlNKDjRKbLme33irvwjR1ztWga/U HxeY56e6Z1tCpH7aY1SS455WHw8CVdlAvTInj+O+jMgkiRXelUxsnq75ozHUN2Ic4d nMxU55EjY6zQsTJe2ToSi2jyOhEBKqrNK6Wsa/2U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikolay Borisov , Qu Wenruo , David Sterba Subject: [PATCH 5.10 022/452] btrfs: add "0x" prefix for unsupported optional features Date: Tue, 7 Jun 2022 18:57:59 +0200 Message-Id: <20220607164909.205198555@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qu Wenruo commit d5321a0fa8bc49f11bea0b470800962c17d92d8f upstream. The following error message lack the "0x" obviously: cannot mount because of unsupported optional features (4000) Add the prefix to make it less confusing. This can happen on older kernels that try to mount a filesystem with newer features so it makes sense to backport to older trees. CC: stable@vger.kernel.org # 4.14+ Reviewed-by: Nikolay Borisov Signed-off-by: Qu Wenruo Reviewed-by: David Sterba Signed-off-by: David Sterba Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/disk-io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3061,7 +3061,7 @@ int __cold open_ctree(struct super_block ~BTRFS_FEATURE_INCOMPAT_SUPP; if (features) { btrfs_err(fs_info, - "cannot mount because of unsupported optional features (%llx)", + "cannot mount because of unsupported optional features (0x%llx)", features); err = -EINVAL; goto fail_alloc; @@ -3099,7 +3099,7 @@ int __cold open_ctree(struct super_block ~BTRFS_FEATURE_COMPAT_RO_SUPP; if (!sb_rdonly(sb) && features) { btrfs_err(fs_info, - "cannot mount read-write because of unsupported optional features (%llx)", + "cannot mount read-write because of unsupported optional features (0x%llx)", features); err = -EINVAL; goto fail_alloc;