From patchwork Wed May 30 04:55:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Misono Tomohiro X-Patchwork-Id: 10437621 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2AB9F601D3 for ; Wed, 30 May 2018 04:52:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CDD728824 for ; Wed, 30 May 2018 04:52:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1194B28843; Wed, 30 May 2018 04:52:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8677428829 for ; Wed, 30 May 2018 04:52:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935685AbeE3Ewl (ORCPT ); Wed, 30 May 2018 00:52:41 -0400 Received: from mgwkm04.jp.fujitsu.com ([202.219.69.171]:29520 "EHLO mgwkm04.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935552AbeE3Ewk (ORCPT ); Wed, 30 May 2018 00:52:40 -0400 Received: from kw-mxoi1.gw.nic.fujitsu.com (unknown [192.168.231.131]) by mgwkm04.jp.fujitsu.com with smtp id 3216_a419_f9828094_a292_4f06_a164_818524aa820c; Wed, 30 May 2018 13:52:32 +0900 Received: from g01jpfmpwyt03.exch.g01.fujitsu.local (g01jpfmpwyt03.exch.g01.fujitsu.local [10.128.193.57]) by kw-mxoi1.gw.nic.fujitsu.com (Postfix) with ESMTP id E808FAC017C for ; Wed, 30 May 2018 13:52:31 +0900 (JST) Received: from G01JPEXCHYT15.g01.fujitsu.local (G01JPEXCHYT15.g01.fujitsu.local [10.128.194.54]) by g01jpfmpwyt03.exch.g01.fujitsu.local (Postfix) with ESMTP id 123B046E7A0 for ; Wed, 30 May 2018 13:52:31 +0900 (JST) Received: from luna3.soft.fujitsu.com (10.124.196.199) by G01JPEXCHYT15.g01.fujitsu.local (10.128.194.54) with Microsoft SMTP Server id 14.3.352.0; Wed, 30 May 2018 13:52:29 +0900 From: Misono Tomohiro To: Subject: [PATCH 1/2] btrfs-progs: ins: dump-tree: Use %lld for extent data backref offset Date: Wed, 30 May 2018 13:55:19 +0900 Message-ID: <7f63f4b1c4c08652ad9bb77ff95b26597e92ded7.1527655420.git.misono.tomohiro@jp.fujitsu.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: MIME-Version: 1.0 X-SecurityPolicyCheck-GC: OK by FENCE-Mail X-TM-AS-MML: disable Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Offset of extent data backref in extent item can be negative. So, let's use %lld insteand of %llu to output readable value. Signed-off-by: Misono Tomohiro --- print-tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/print-tree.c b/print-tree.c index a1a7954a..90173c2b 100644 --- a/print-tree.c +++ b/print-tree.c @@ -480,10 +480,10 @@ void print_extent_item(struct extent_buffer *eb, int slot, int metadata) case BTRFS_EXTENT_DATA_REF_KEY: dref = (struct btrfs_extent_data_ref *)(&iref->offset); printf("\t\textent data backref root %llu " - "objectid %llu offset %llu count %u\n", + "objectid %llu offset %lld count %u\n", (unsigned long long)btrfs_extent_data_ref_root(eb, dref), (unsigned long long)btrfs_extent_data_ref_objectid(eb, dref), - (unsigned long long)btrfs_extent_data_ref_offset(eb, dref), + btrfs_extent_data_ref_offset(eb, dref), btrfs_extent_data_ref_count(eb, dref)); break; case BTRFS_SHARED_DATA_REF_KEY: