[ofa-general] [PATCH] infiniband-diags/saquery.c: In dump_results, use query_result rather than query_svc_rec

Hal Rosenstock hrosenstock at xsigo.com
Sun Jun 8 13:17:50 PDT 2008


infiniband-diags/saquery.c: In dump_results, use query_result rather
than query_svc_rec

Most queries are not for service records.

If attribute identifier validation is desired, this should be
implemented differently.

Signed-off-by: Hal Rosenstock <hal at xsigo.com>

diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
index d97e686..e727940 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -659,7 +659,7 @@ static void dump_results(osmv_query_res_t *r, void (*dump_func)(void *))
 {
 	int i;
 	for (i = 0; i < r->result_cnt; i++) {
-		void *data = osmv_get_query_svc_rec(r->p_result_madw, i);
+		void *data = osmv_get_query_result(r->p_result_madw, i);
 		dump_func(data);
 	}
 }





More information about the general mailing list