[ofa-general] [PATCH] saquery: fix -c arguement

Doron Shoham dorons at voltaire.com
Thu May 7 08:58:29 PDT 2009


set SAQUERY_CMD_CLASS_PORT_INFO instead of CLASS_PORT_INFO

Signed-off-by: Doron Shoham <dorons at voltaire.com>
---
 infiniband-diags/src/saquery.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
index 4dcd712..2ec32cf 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -1470,7 +1470,7 @@ static int process_opt(void *context, int ch, char *optarg)
 		node_print_desc = ALL_DESC;
 		break;
 	case 'c':
-		command = CLASS_PORT_INFO;
+		command = SAQUERY_CMD_CLASS_PORT_INFO
 		break;
 	case 'S':
 		query_type = IB_SA_ATTR_SERVICERECORD;
-- 
1.5.4




More information about the general mailing list