Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2123035iof; Tue, 7 Jun 2022 20:30:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKLrWCWdfOqEldtHGI+VezqO1w9jhGN9ettrxv83zbazaz4CnNbdqMVBrP0z77jEv9LF0v X-Received: by 2002:a17:903:32c8:b0:166:3674:b2d4 with SMTP id i8-20020a17090332c800b001663674b2d4mr32182931plr.173.1654659008984; Tue, 07 Jun 2022 20:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654659008; cv=none; d=google.com; s=arc-20160816; b=uMWU4j76fk8aedeU5XTm8Ut5/MGYNyeWyRi/pBwttn9H9ifRp0Dn4rY5cEMMZYv8I6 vnFMMUIIAhQTIJ8mpBoQR4X3Gv5Y5g/oWpC622oFI0+h8QHbMzVa6YfE15qYf4Q/JJFD OYbIdz9SrmypIuWqLuZQk2zITvXOP8OXjCb0ODO8J6iYJDI7+tJzCMIdLqAnPwAzRf0p ALw9SRh3szEtbT/JDNqulmNYmYVcuXuuLfgsPTWcNZRfpxDbWHNCD7NuhvlkmTYN1r3M q0zVnEHAtrGCwvPXbQtObFwHMiRLAQV6BuVdqzprLmGC+plMik8eenUjH5cH9x+szuGJ VJQw== 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=KqmaTR+sMlSobng1/N7aSThhckabop0bog/dtrOyjyw=; b=F82RvH3JF8eheJdqdCXNJBPH2UURiwehNm3cMmJsc9NhXfzY7tqEMB2OO09faGct7C 9DvvUq4H0lc4vWYd9V7P3ONxlZoN3y7IGkzqL+U0B3KSNgMNJMM1YGSqCGj2b7BxRi/3 fEfwW6s1D27ypdNactDcoX/qHFD+hlfmfDGwuHfYGvEqMfDtSsHBTw/XjK4cOUl/onUt pdFMSByMThI71nKaTWq/0dd4JEZkKBshPs0B2rLEkGDKngUR+baTUImwMmjfgc9T37iL 4OyA5o9BtYv48gK95am65xBEFSq4ZcKqtECxTJkyl+PgHandOwY+6puzM5ZbsCiN/00m 2I+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ulyR8n/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i14-20020a170902cf0e00b001675b7b79d4si18398515plg.41.2022.06.07.20.30.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ulyR8n/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 BA9881F77F4; Tue, 7 Jun 2022 19:47:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382432AbiFGV5f (ORCPT + 99 others); Tue, 7 Jun 2022 17:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379297AbiFGVCT (ORCPT ); Tue, 7 Jun 2022 17:02:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 217B43617F; Tue, 7 Jun 2022 11:47:37 -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 ams.source.kernel.org (Postfix) with ESMTPS id 926E1B823BA; Tue, 7 Jun 2022 18:47:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09587C36B11; Tue, 7 Jun 2022 18:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627655; bh=VNTYxmX8PpF2Jzw0wM9DpYH0agkzQxOFUJ/xXktJhtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ulyR8n/toaKKkzcda7x+mz+0RrlbUUtx2yCV/kE/0mxzD7X0i/a3TPEYsLR4lqtfG RV8sgIem3fqhj/pqJ8ZZErGR3Naab2j+Z3cHDMy9nog9S79drUYkbMdiBfYLcA8exh Stw7Lh0PKsGYS/zgVePF7O5enoUhWMrLlAiqUaTE= 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.18 045/879] btrfs: add "0x" prefix for unsupported optional features Date: Tue, 7 Jun 2022 18:52:43 +0200 Message-Id: <20220607165003.988268369@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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 @@ -3611,7 +3611,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; @@ -3649,7 +3649,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;