Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp341497lqb; Tue, 16 Apr 2024 18:55:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWV7kwKcfoV0CIGa21nrK6vRKIfkWebT6+DCJwspST3zZzRYdh748p7SQ8G/3ZZtyVvjCUgsQCFjfiqSDtYg/Avg1OiLB21DI7Y8Uq8uw== X-Google-Smtp-Source: AGHT+IFNpv2QfqYdIYJn6WdMVNtLbx9tjcXlthIu1GmHLz0SQv+Y5BJupBDd3WkjwLyndiJDfrXP X-Received: by 2002:a05:6870:1ec5:b0:229:f445:d6b3 with SMTP id pc5-20020a0568701ec500b00229f445d6b3mr18114899oab.5.1713318917224; Tue, 16 Apr 2024 18:55:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713318917; cv=pass; d=google.com; s=arc-20160816; b=Fv5RLXwqilI8FCt4AlgijiY2poGEkk+qQ98K7Mh4pkBjEcIlZ38c7HVbZtZOxkanuq LfWmtjhAA1DEfBU+u3RMd9wKNyGd+qDVvRw0kza4bZJdImu1JmiqZd6vpumDIiceeCW8 hOBJp9lQx8wYeUQ/C6/+5IqoqFrMovIOXHJeQt+m60sWGqW124kyJ7AAB4ML+Icvq3Dk Lg5FeIK+UOELADUGKcvjPNK1gGhmhb3MDxQsO7iz4xnlOGBVKDeLF6B+ZnQMosWAZkx1 003K84172/SieFFLoaEa5Z5Up4ARfDuteMTavuxrlFUlya6fBTRacl7qn9RvhE9agyyF m7Yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=HgOZ2fSjs/N1ggGZNktiuDnktJI/mqa7RRNdF5NRUdY=; fh=uRRo/bsVkkMz4T1a2t0y0xSNbzWg22XBPvnHoLuz/8k=; b=oiMo4NaK+yjNRMI/kJJM2+9NnxD77mKhW4KwXUzpEt7ArogIl57BV+XrX9ZTsHKfg4 fnO21XOZxFr6eiZepDmDLJtJgRxkkWiq6K1tcf/2WMnV1PentCppIwSMMyuIdwN70yu9 YvL20PxNtNtTOMYOmDUzpQI/beqbFDyK30Y+m02oVBIiz07oLyoaJtaY6D5TZdGbaMln m4bAHMHF6EG9QdgTULLWzZMvH3BM6ofnZytMcVCxLPcAWIZJBg5ettlNJ0BQ5047Ap0i oX8MYu7+UaooUN4RPh7CcAdK4jZWyBFajPxhBXsgIgVMujwMXmj6VGkEqyhzvyRkxN1q YmWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pQkwxEkx; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-147835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 25-20020a631759000000b005eb4df79741si10490414pgx.533.2024.04.16.18.55.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 18:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pQkwxEkx; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-147835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D5310282AF3 for ; Wed, 17 Apr 2024 01:55:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 591DF4C99; Wed, 17 Apr 2024 01:55:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="pQkwxEkx" Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15DC04690 for ; Wed, 17 Apr 2024 01:55:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713318907; cv=none; b=KS9hFpcKK332isSg9aiJwF9ZaXsWplZ6oNSw05SrIXJIK63HYTi+Rsn9J//p/AWvIG7kTkNYCHsONLCeP/BeAoW+APl/91dOf7QF6JJUuqdjU3UQ7SSRgg3aphu7/VDgJ29/HQ/FyV3WF/evMZGW4BujGJlm622Wl/zvAlvlKrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713318907; c=relaxed/simple; bh=Wv6lCOo1+OGIlkZsf1D8muIr2irjbTaXE+kqboMajQU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=BdR5dd8KnV+HZQB6UaJGHj7EsXTNl+xAihBr7gQExY0gIr/Rc/tBNfb/EpdWWArtllhGC/l05D1CLowcChH6zmEghsgWYeALmJ6P/BU8AzzNm6smtKpMVxEbLOTM4GhBeuMJztT7ZuWdPBGAXsGpWFXMgcQLIFdHeZgm/vt5VZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=pQkwxEkx; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1713318903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=HgOZ2fSjs/N1ggGZNktiuDnktJI/mqa7RRNdF5NRUdY=; b=pQkwxEkxPhXqBVhY00+zyOR4hFCIFrn+xCUj1oPew/Ekr6Sjt0x1Sq3HJQOxK1zHIlNQgc WW2bWsWparhmiF5L9F+NNgNeKMaLNs1m+wdlYjnBiuEhueKOnzvU4ugPCy3r+l+lXiynhe aiy0CT9IuVlGv+s4kseoMuJ7+1oF6Mg= From: Youling Tang To: Kent Overstreet Cc: linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, Youling Tang Subject: [PATCH] bcachefs: Align the display format of `btrees/inodes/keys` Date: Wed, 17 Apr 2024 09:54:48 +0800 Message-Id: <20240417015448.84294-1-youling.tang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Youling Tang Before patch: ``` #cat btrees/inodes/keys u64s 17 type inode_v3 0:4096:U32_MAX len 0 ver 0: mode=40755 flags= (16300000) ``` After patch: ``` #cat btrees/inodes/keys u64s 17 type inode_v3 0:4096:U32_MAX len 0 ver 0: mode=40755 flags= (16300000) ``` Signed-off-by: Youling Tang --- fs/bcachefs/bkey_methods.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/bcachefs/bkey_methods.c b/fs/bcachefs/bkey_methods.c index db336a43fc08..03c755f65430 100644 --- a/fs/bcachefs/bkey_methods.c +++ b/fs/bcachefs/bkey_methods.c @@ -306,7 +306,8 @@ void bch2_bkey_val_to_text(struct printbuf *out, struct bch_fs *c, bch2_bkey_to_text(out, k.k); if (bkey_val_bytes(k.k)) { - prt_printf(out, ": "); + prt_printf(out, ":"); + prt_newline(out); bch2_val_to_text(out, c, k); } } -- 2.34.1