Skip to content

Commit

Permalink
List: enable LIST_HEAD_FORMAT for -r option
Browse files Browse the repository at this point in the history
Currently, the LIST_HEAD_FORMAT is not set, 'list -r' will list the
traversal results in order, not in the reverse order. This is not
the expected behavior.

Let's enable the LIST_HEAD_FORMAT for -r option by default.

Signed-off-by: Li Zhijian <[email protected]>
  • Loading branch information
zhijianli88 authored and lian-bo committed Jul 3, 2024
1 parent 3452fe8 commit ce4ddc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -3370,6 +3370,7 @@ cmd_list(void)
break;

case 'r':
ld->flags |= LIST_HEAD_FORMAT;
ld->flags |= LIST_HEAD_REVERSE;
break;

Expand Down

0 comments on commit ce4ddc7

Please sign in to comment.