[VSTAT]added printing of more port states
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 18 Jul 2006 13:44:51 +0000 (13:44 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 18 Jul 2006 13:44:51 +0000 (13:44 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@424 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

tools/vstat/user/vstat_main.c

index b6662da..7a95f66 100644 (file)
@@ -104,9 +104,15 @@ void printPortLinkState(int portState){ //TODO: check that these are all the opt
                case 2:\r
                        printf("\t\tport_state=PORT_INITIALIZE (%d)\n",portState);\r
                        break;\r
+               case 3:\r
+                       printf("\t\tport_state=PORT_ARMED (%d)\n",portState);\r
+                       break;\r
                case 4:\r
                        printf("\t\tport_state=PORT_ACTIVE (%d)\n",portState);\r
                        break;\r
+               case 5:\r
+                       printf("\t\tport_state=PORT_ACTDEFER (%d)\n",portState);\r
+                       break;\r
                default:\r
                        printf("\t\tport_state=UNKNOWN (%d)\n",portState); \r
        }\r