linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: print-tree: fix INODE_ITEM sequence and flags
@ 2018-02-12 15:21 Anand Jain
  2018-02-12 15:33 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Anand Jain @ 2018-02-12 15:21 UTC (permalink / raw)
  To: linux-btrfs

dump-tree prints wrong sequence number and the flags numbers,
as we misplaced the printf args. This patch fixes it.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 print-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/print-tree.c b/print-tree.c
index d3fa862139ef..cdc39c971ec9 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -919,8 +919,8 @@ static void print_inode_item(struct extent_buffer *eb,
 	       btrfs_inode_uid(eb, ii),
 	       btrfs_inode_gid(eb, ii),
 	       (unsigned long long)btrfs_inode_rdev(eb,ii),
-	       (unsigned long long)btrfs_inode_flags(eb,ii),
 	       (unsigned long long)btrfs_inode_sequence(eb, ii),
+	       (unsigned long long)btrfs_inode_flags(eb,ii),
 	       flags_str);
 	print_timespec(eb, btrfs_inode_atime(ii), "\t\tatime ", "\n");
 	print_timespec(eb, btrfs_inode_ctime(ii), "\t\tctime ", "\n");
-- 
2.15.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs-progs: print-tree: fix INODE_ITEM sequence and flags
  2018-02-12 15:21 [PATCH] btrfs-progs: print-tree: fix INODE_ITEM sequence and flags Anand Jain
@ 2018-02-12 15:33 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2018-02-12 15:33 UTC (permalink / raw)
  To: Anand Jain; +Cc: linux-btrfs

On Mon, Feb 12, 2018 at 11:21:26PM +0800, Anand Jain wrote:
> dump-tree prints wrong sequence number and the flags numbers,
> as we misplaced the printf args. This patch fixes it.
> 
> Signed-off-by: Anand Jain <anand.jain@oracle.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-12 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-12 15:21 [PATCH] btrfs-progs: print-tree: fix INODE_ITEM sequence and flags Anand Jain
2018-02-12 15:33 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).