[HW, TOOLS] return system_image_guid
[mirror/winof/.git] / tools / vstat / user / vstat_main.c
index a901450..86acd26 100644 (file)
@@ -82,8 +82,8 @@ void print64bit(ib_net64_t u64, BOOLEAN hexFormat){
        }\r
 }      \r
 \r
-void printGUID(ib_net64_t guid){\r
-       printf("\tnode_guid=");\r
+void printGUID(char *title, ib_net64_t guid){\r
+       printf(title);\r
        print64bit(guid, TRUE);\r
        printf("\n");\r
 }\r
@@ -340,8 +340,9 @@ void vstat_print_ca_attr(int idx,  ib_ca_attr_t* ca_attr, ib_port_info_t* vstat_
        }else{\r
                printf("\tfw_ver=0x%I64x\n",ca_attr->fw_ver);\r
        }\r
-       printGUID(ca_attr->ca_guid);\r
+       printGUID("\tnode_guid=", ca_attr->ca_guid);\r
        if(fullPrint){\r
+               printGUID("\tsys_image_guid=", ca_attr->system_image_guid);\r
                printf("\tnum_phys_ports = %d\n",ca_attr->num_ports);\r
                printf("\tmax_num_qp = 0x%x             (Maximum Number of QPs supported)\n", ca_attr->max_qps);\r
                printf("\tmax_qp_ous_wr = 0x%x          (Maximum Number of outstanding WR on any WQ)\n", ca_attr->max_wrs);\r