From ce4ddc742fbdde2fc966e79a19d6aa962e79448a Mon Sep 17 00:00:00 2001 From: Li Zhijian Date: Tue, 2 Jul 2024 14:31:30 +0800 Subject: [PATCH] List: enable LIST_HEAD_FORMAT for -r option 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 --- tools.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools.c b/tools.c index 0f2db108..1022d579 100644 --- a/tools.c +++ b/tools.c @@ -3370,6 +3370,7 @@ cmd_list(void) break; case 'r': + ld->flags |= LIST_HEAD_FORMAT; ld->flags |= LIST_HEAD_REVERSE; break;