[PATCH] opensm/libvendor: Fix compile warnings on 64 bit machines when building --with-osmv=sim

2011-06-02 Thread Hal Rosenstock
osm_vendor_mlx.c: In function '__osmv_get_send_txn': osm_vendor_mlx.c:708: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx.c:723: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t'

[PATCH] opensm/osm_switch.c: In switch_find_guid_common, handle NULL parameter

2011-06-02 Thread Hal Rosenstock
Since port-priv can be NULL, struct osm_remote_guids_count * supplied can be NULL so handle this. Signed-off-by: Hal Rosenstock h...@mellanox.com --- diff --git a/opensm/osm_switch.c b/opensm/osm_switch.c index 9785a9d..fbb8292 100644 --- a/opensm/osm_switch.c +++ b/opensm/osm_switch.c @@ -1,6

[PATCH] opensm/osm_ucast_ftree.c: Handle [sw hca]_create failures

2011-06-02 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock h...@mellanox.com --- diff --git a/opensm/osm_ucast_ftree.c b/opensm/osm_ucast_ftree.c index 51e252a..477f883 100644 --- a/opensm/osm_ucast_ftree.c +++ b/opensm/osm_ucast_ftree.c @@ -2,7 +2,7 @@ * Copyright (c) 2009 Simula Research Laboratory. All rights reserved.