]> git.proxmox.com Git - mirror_corosync.git/commitdiff
cfgtool: Fix brief mode display of localhost
authorJan Friesse <jfriesse@redhat.com>
Mon, 2 Aug 2021 07:24:22 +0000 (09:24 +0200)
committerJan Friesse <jfriesse@redhat.com>
Mon, 2 Aug 2021 13:13:38 +0000 (15:13 +0200)
Show 'n' also for first localhost link, so all localhost links
are marked consistently with non-brief display.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
tools/corosync-cfgtool.c

index 5b9d856486933c11946721e23c07bd4201b36d66..dc8f99ea05e0bd98da7c772b4bc6539ee5d2db8f 100644 (file)
@@ -302,7 +302,7 @@ nodestatusget_do (enum user_action action, int brief)
                                        for (j=0; j<s; j++) {
                                                char status = (node_info[j].link_status[i].enabled |
                                                               (node_info[j].link_status[i].connected << 1)) + '0';
-                                               if (status == '0') {
+                                               if (j == local_nodeid_index) {
                                                        status = 'n';
                                                }
                                                printf("%c", status);