Skip to content

Commit b80a974

Browse files
Zhihao Chengrichardweinberger
authored andcommitted
ubifs: ubifs_dump_node: Dump all branches of the index node
An index node can have up to c->fanout branches, all branches should be displayed while dumping index node. Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent bf6dab7 commit b80a974

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ubifs/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ void ubifs_dump_node(const struct ubifs_info *c, const void *node, int node_len)
537537
pr_err("\tlevel %d\n", (int)le16_to_cpu(idx->level));
538538
pr_err("\tBranches:\n");
539539

540-
for (i = 0; i < n && i < c->fanout - 1; i++) {
540+
for (i = 0; i < n && i < c->fanout; i++) {
541541
const struct ubifs_branch *br;
542542

543543
br = ubifs_idx_branch(c, idx, i);

0 commit comments

Comments
 (0)