From: leonidk Date: Sun, 29 Jun 2008 16:09:57 +0000 (+0000) Subject: [tools] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from vstat. X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f12707f86172a12a35ea0ee9fe786d4710d42e3b;p=~shefty%2Frdma-win.git [tools] This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from vstat. Signed-off-by: Fab Tillier git-svn-id: svn://openib.tc.cornell.edu/gen1@1305 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/tools/vstat/user/vstat_main.c b/trunk/tools/vstat/user/vstat_main.c index 86acd263..b893a667 100644 --- a/trunk/tools/vstat/user/vstat_main.c +++ b/trunk/tools/vstat/user/vstat_main.c @@ -1,6 +1,7 @@ /* * Copyright (c) 2005 Mellanox Technologies. All rights reserved. * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. + * Portions Copyright (c) 2008 Microsoft Corporation. All rights reserved. * * This software is available to you under the OpenIB.org BSD license * below: @@ -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: ??? if(ca_attr->vend_id == VEND_ID_MELLNOX || ca_attr->vend_id == VEND_ID_VOLTAIRE) { printf("\tfw_ver=%d.%.2d.%.4d\n", - (uint16_t )(ca_attr->fw_ver>>32), + (uint16_t)(ca_attr->fw_ver>>32), (uint16_t)(ca_attr->fw_ver>>16), - (uint16_t )(ca_attr->fw_ver)); + (uint16_t)(ca_attr->fw_ver)); printf("\tPSID=%s\n",mthca_get_board_id(ca_attr)); }else{ printf("\tfw_ver=0x%I64x\n",ca_attr->fw_ver); @@ -392,7 +393,7 @@ void vstat_print_ca_attr(int idx, ib_ca_attr_t* ca_attr, ib_port_info_t* vstat_ } /* Internal Functions */ -void vstat_get_counters(ib_ca_handle_t VOID_PTR64 h_ca,uint8_t port_num) +void vstat_get_counters(ib_ca_handle_t h_ca,uint8_t port_num) { ib_mad_t *mad_in = NULL; ib_mad_t *mad_out = NULL; @@ -445,7 +446,7 @@ void vstat_get_counters(ib_ca_handle_t VOID_PTR64 h_ca,uint8_t port_num) } -void vstat_get_port_info(ib_ca_handle_t VOID_PTR64 h_ca,uint8_t port_num, ib_port_info_t* vstat_port_info) +void vstat_get_port_info(ib_ca_handle_t h_ca,uint8_t port_num, ib_port_info_t* vstat_port_info) { ib_mad_t *mad_in = NULL; ib_mad_t *mad_out = NULL; @@ -487,7 +488,7 @@ vstat_ca_attr( BOOLEAN getCounters ) { - ib_al_handle_t VOID_PTR64 h_al = NULL; + ib_al_handle_t h_al = NULL; ib_api_status_t ib_status = IB_SUCCESS; ib_api_status_t ret_status = IB_SUCCESS; size_t guid_count; @@ -495,7 +496,7 @@ vstat_ca_attr( ib_ca_attr_t *vstat_ca_attr; ib_port_info_t vstat_port_info[2]; size_t i; - ib_ca_handle_t VOID_PTR64 h_ca = NULL; + ib_ca_handle_t h_ca = NULL; uint32_t bsize; ib_port_attr_mod_t port_attr_mod; uint8_t port_idx; @@ -698,3 +699,4 @@ main( return 0; } +