[PATCH 1/5] btrfs.c: fix print_array usage in btrfs_print_logical_ino_container
jeffm at suse.com
jeffm at suse.com
Fri May 27 03:33:03 UTC 2016
From: Jeff Mahoney <jeffm at suse.com>
* btrfs.c: (btrfs_print_logical_ino_container) Fix the element count to
reflect the number of records rather than the number of items.
---
btrfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/btrfs.c b/btrfs.c
index c1c9592..af0645c 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -303,7 +303,7 @@ btrfs_print_logical_ino_container(struct tcb *tcp,
const uint64_t val_addr =
inodes_addr + offsetof(typeof(container), val);
uint64_t record[3];
- print_array(tcp, val_addr, container.elem_cnt,
+ print_array(tcp, val_addr, container.elem_cnt / 3,
record, sizeof(record),
umoven_or_printaddr,
print_btrfs_data_container_logical_ino, 0);
--
2.7.1
More information about the Strace-devel
mailing list