[tools] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from vstat.
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 29 Jun 2008 16:09:57 +0000 (16:09 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 29 Jun 2008 16:09:57 +0000 (16:09 +0000)
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1305 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

tools/vstat/user/vstat_main.c

index 86acd26..b893a66 100644 (file)
@@ -1,6 +1,7 @@
 /*\r
  * Copyright (c) 2005 Mellanox Technologies.  All rights reserved.\r
  * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation.  All rights reserved.\r
  *\r
  * This software is available to you under the OpenIB.org BSD license\r
  * below:\r
@@ -333,9 +334,9 @@ void vstat_print_ca_attr(int idx,  ib_ca_attr_t* ca_attr, ib_port_info_t* vstat_
        printf("\thw_ver=0x%x\n", ca_attr->revision); //TODO: ???\r
        if(ca_attr->vend_id == VEND_ID_MELLNOX || ca_attr->vend_id == VEND_ID_VOLTAIRE) {\r
                printf("\tfw_ver=%d.%.2d.%.4d\n",\r
-               (uint16_t )(ca_attr->fw_ver>>32),\r
+               (uint16_t)(ca_attr->fw_ver>>32),\r
                (uint16_t)(ca_attr->fw_ver>>16),\r
-               (uint16_t )(ca_attr->fw_ver));\r
+               (uint16_t)(ca_attr->fw_ver));\r
                printf("\tPSID=%s\n",mthca_get_board_id(ca_attr));\r
        }else{\r
                printf("\tfw_ver=0x%I64x\n",ca_attr->fw_ver);\r
@@ -392,7 +393,7 @@ void vstat_print_ca_attr(int idx,  ib_ca_attr_t* ca_attr, ib_port_info_t* vstat_
 }\r
 /* Internal Functions */\r
 \r
-void vstat_get_counters(ib_ca_handle_t VOID_PTR64 h_ca,uint8_t port_num)\r
+void vstat_get_counters(ib_ca_handle_t h_ca,uint8_t port_num)\r
 {\r
        ib_mad_t                        *mad_in = NULL;\r
        ib_mad_t                        *mad_out = NULL;\r
@@ -445,7 +446,7 @@ void vstat_get_counters(ib_ca_handle_t VOID_PTR64 h_ca,uint8_t port_num)
 }\r
 \r
 \r
-void vstat_get_port_info(ib_ca_handle_t VOID_PTR64 h_ca,uint8_t port_num, ib_port_info_t* vstat_port_info)\r
+void vstat_get_port_info(ib_ca_handle_t h_ca,uint8_t port_num, ib_port_info_t* vstat_port_info)\r
 {\r
        ib_mad_t                        *mad_in = NULL;\r
        ib_mad_t                        *mad_out = NULL;\r
@@ -487,7 +488,7 @@ vstat_ca_attr(
        BOOLEAN getCounters\r
        )\r
 {\r
-       ib_al_handle_t VOID_PTR64               h_al = NULL;\r
+       ib_al_handle_t          h_al = NULL;\r
        ib_api_status_t         ib_status = IB_SUCCESS;\r
        ib_api_status_t         ret_status = IB_SUCCESS;\r
        size_t                  guid_count;\r
@@ -495,7 +496,7 @@ vstat_ca_attr(
        ib_ca_attr_t            *vstat_ca_attr;\r
        ib_port_info_t          vstat_port_info[2];\r
        size_t                  i;\r
-       ib_ca_handle_t VOID_PTR64       h_ca = NULL;\r
+       ib_ca_handle_t  h_ca = NULL;\r
        uint32_t                        bsize;\r
        ib_port_attr_mod_t port_attr_mod;\r
        uint8_t                 port_idx;\r
@@ -698,3 +699,4 @@ main(
        return 0;\r
 }\r
 \r
+\r