af40e9be44
Release: crash-8.0.5-4 Resolves: RHEL-44340 Signed-off-by: Tao Liu <ltao@redhat.com>
32 lines
784 B
Diff
32 lines
784 B
Diff
From ce4ddc742fbdde2fc966e79a19d6aa962e79448a Mon Sep 17 00:00:00 2001
|
|
From: Li Zhijian <lizhijian@fujitsu.com>
|
|
Date: Tue, 2 Jul 2024 14:31:30 +0800
|
|
Subject: [PATCH 2/2] 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 <lizhijian@fujitsu.com>
|
|
---
|
|
tools.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/tools.c b/tools.c
|
|
index 0f2db10..1022d57 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;
|
|
|
|
--
|
|
2.40.1
|
|
|