[openib-general] [PATCH] osm: osm_vendor_umad osm_vendor_get_all_port_attr bug

Eitan Zahavi eitan at mellanox.co.il
Thu Sep 15 05:56:30 PDT 2005


Hi Hal

Seems like last patch fixing osmv_transport_init was broken.
This fixes it.

Thanks

Eitan

Signed-off-by:  Eitan Zahavi <eitan at mellanox.co.il>

Index: libvendor/osm_vendor_mlx_ts.c
===================================================================
--- libvendor/osm_vendor_mlx_ts.c	(revision 3443)
+++ libvendor/osm_vendor_mlx_ts.c	(working copy)
@@ -177,8 +177,8 @@ __osmv_TOPSPIN_receiver_thr(void* p_ctx)
 
 ib_api_status_t
 osmv_transport_init(IN osm_bind_info_t *p_info,
-                    IN uint8_t hca_idx,
                     IN char hca_id[VENDOR_HCA_MAXNAMES],
+                    IN uint8_t hca_idx,
                     IN osmv_bind_obj_t *p_bo)
 {
   cl_status_t cl_st;
@@ -195,7 +195,7 @@ osmv_transport_init(IN osm_bind_info_t *
 
   /* open TopSpin file device */
   /* HACK: assume last char in hostid is the HCA index */
-  sprintf(device_file, "/dev/ts_ua%s", hca_idx);
+  sprintf(device_file, "/dev/ts_ua%u", hca_idx);
   device_fd = open(device_file, O_RDWR );
   if (device_fd < 0)
   {




More information about the general mailing list