Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10788831imu; Thu, 6 Dec 2018 06:51:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ummeknd7+hGvZTY22hZ1pTrZ++RCcye+LWDQAbRgtNHDL5Ibj7V26lKWvpMojvfdZD3j8g X-Received: by 2002:a65:560e:: with SMTP id l14mr24399138pgs.168.1544107883329; Thu, 06 Dec 2018 06:51:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544107883; cv=none; d=google.com; s=arc-20160816; b=HVIxptbZrjdXHDRgmmB28Vb9AUwxDkz08sFB0E+LlFb9vxMHQQPnRVqNxFtLuacu2i DIPKOFjaalcSeHe/F93cNK/CY6dlidzTXZVdWF9IUdfobs6t2wNNfRB9UtdkLy5Y6A1n sx4oxbDdl8Io1OyhBfDnUmTbi3fgGGPe1lYgY/BTMY/XkaVjGPRBcplawFlhbwnnUX63 pujlnGMkyArQRtuFkq8ek13L087u+Vmh3S8r/QwVmJepFvX4qBy0GouHcAqxxHwjPzUQ Ul6edSNGN7qCO32cBOUGclPlcLVY/w6q2YsFntAMe4r8L4JtH/odgdtX9iMr09CIQEW8 N28Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SvP1F1/l/wXV7zRkXVyW0jNwIeHZrLCvMpH21BRajr8=; b=LiBraG97qMuw8R4XdCmkt2Kq6e+K2r7clKqleo/hZCOHMFB2o934I+dUAuFxkKBcHh RrrxubMmZneFQaU/WkPScGNwQzuijQNuNwpgXPA2YkBh9vTJXF/w463q/wKPeVW+JHUU ZoqikYr1J+fZAqEXNqxOBN4hSByCM5WqrIhS6E/QRKBHF7www00YZPdQIvTHOAVTwj3R YvJlRmCXmYn59z2n8KSEMWpxi60aIgZn6kPKzXiQ4ADdEuxARjBHN4KozwFg4kRx0zU5 hme2DOR8acCsRfk+LhAweQZKBP4UjxbDPtlSnvpc6y9u3AoAyxlTTCwyUgkyG0Jb5bf2 MlfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nHjgdWkV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q24si411433pls.325.2018.12.06.06.51.07; Thu, 06 Dec 2018 06:51:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nHjgdWkV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730924AbeLFOsq (ORCPT + 99 others); Thu, 6 Dec 2018 09:48:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:53704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730729AbeLFOsa (ORCPT ); Thu, 6 Dec 2018 09:48:30 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF1812146D; Thu, 6 Dec 2018 14:48:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544107709; bh=XqP8WbEGMPpnUH4zSCBs4g1vX2Mpi6CNxFH2t54ZT1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nHjgdWkV11RB4UupoVqa1CSlQnD/xoQz2oibh06ElcJFyipKGjivBSCn5uZj5tB9F RMcLKLDtgV64adFDpuZAabZh52hczjRnuFGzv9vgqUyIId8nyEuBU1XCuBI8qovR0U I5jaZA8OOQeLT64JtiGvg1xxKdXMzK/v4osVvi6A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikolay Borisov , Qu Wenruo , Shaokun Zhang , David Sterba , Ben Hutchings Subject: [PATCH 4.9 082/101] btrfs: tree-checker: Fix misleading group system information Date: Thu, 6 Dec 2018 15:39:21 +0100 Message-Id: <20181206143017.284001263@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206143011.174892052@linuxfoundation.org> References: <20181206143011.174892052@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shaokun Zhang commit 761333f2f50ccc887aa9957ae829300262c0d15b upstream. block_group_err shows the group system as a decimal value with a '0x' prefix, which is somewhat misleading. Fix it to print hexadecimal, as was intended. Fixes: fce466eab7ac6 ("btrfs: tree-checker: Verify block_group_item") Reviewed-by: Nikolay Borisov Reviewed-by: Qu Wenruo Signed-off-by: Shaokun Zhang Reviewed-by: David Sterba Signed-off-by: David Sterba Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/tree-checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/btrfs/tree-checker.c +++ b/fs/btrfs/tree-checker.c @@ -399,7 +399,7 @@ static int check_block_group_item(struct type != (BTRFS_BLOCK_GROUP_METADATA | BTRFS_BLOCK_GROUP_DATA)) { block_group_err(fs_info, leaf, slot, -"invalid type, have 0x%llx (%lu bits set) expect either 0x%llx, 0x%llx, 0x%llu or 0x%llx", +"invalid type, have 0x%llx (%lu bits set) expect either 0x%llx, 0x%llx, 0x%llx or 0x%llx", type, hweight64(type), BTRFS_BLOCK_GROUP_DATA, BTRFS_BLOCK_GROUP_METADATA, BTRFS_BLOCK_GROUP_SYSTEM,