From patchwork Fri Nov 6 20:32:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 58100 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA6KaotO027267 for ; Fri, 6 Nov 2009 20:36:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759767AbZKFUgX (ORCPT ); Fri, 6 Nov 2009 15:36:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759842AbZKFUgX (ORCPT ); Fri, 6 Nov 2009 15:36:23 -0500 Received: from qmta10.westchester.pa.mail.comcast.net ([76.96.62.17]:47048 "EHLO QMTA10.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759767AbZKFUgW (ORCPT ); Fri, 6 Nov 2009 15:36:22 -0500 Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA10.westchester.pa.mail.comcast.net with comcast id 1ovx1d0021HzFnQ5AwcUp7; Fri, 06 Nov 2009 20:36:28 +0000 Received: from hal.comcast.net ([75.69.247.31]) by OMTA14.westchester.pa.mail.comcast.net with comcast id 1wcU1d00C0hNrtn3awcUHW; Fri, 06 Nov 2009 20:36:28 +0000 Received: from hal.comcast.net (localhost.localdomain [127.0.0.1]) by hal.comcast.net (8.14.3/8.14.3) with ESMTP id nA6KZeS1013505; Fri, 6 Nov 2009 15:35:45 -0500 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id nA6KWQDs013465; Fri, 6 Nov 2009 15:32:26 -0500 Date: Fri, 6 Nov 2009 15:32:25 -0500 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] infiniband-diags/saquery.c: Change lids and port numbers to decimal Message-ID: <20091106203225.GA13461@comcast.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c index 091125d..da28d17 100644 --- a/infiniband-diags/src/saquery.c +++ b/infiniband-diags/src/saquery.c @@ -279,14 +279,14 @@ static void dump_node_record(void *data) "\t\tbase_version............0x%X\n" "\t\tclass_version...........0x%X\n" "\t\tnode_type...............%s\n" - "\t\tnum_ports...............0x%X\n" + "\t\tnum_ports...............%u\n" "\t\tsys_guid................0x%016" PRIx64 "\n" "\t\tnode_guid...............0x%016" PRIx64 "\n" "\t\tport_guid...............0x%016" PRIx64 "\n" "\t\tpartition_cap...........0x%X\n" "\t\tdevice_id...............0x%X\n" "\t\trevision................0x%X\n" - "\t\tport_num................0x%X\n" + "\t\tport_num................%u\n" "\t\tvendor_id...............0x%X\n" "\t\tNodeDescription.........%s\n", cl_ntoh16(nr->lid), cl_ntoh16(nr->resv), @@ -339,8 +339,8 @@ static void dump_path_record(void *data) "\t\tservice_id..............0x%016" PRIx64 "\n" "\t\tdgid....................%s\n" "\t\tsgid....................%s\n" - "\t\tdlid....................0x%X\n" - "\t\tslid....................0x%X\n" + "\t\tdlid....................%u\n" + "\t\tslid....................%u\n" "\t\thop_flow_raw............0x%X\n" "\t\ttclass..................0x%X\n" "\t\tnum_path_revers.........0x%X\n" @@ -407,9 +407,9 @@ static void dump_portinfo_record(void *data) printf("PortInfoRecord dump:\n" "\t\tEndPortLid..............%u\n" - "\t\tPortNum.................0x%X\n" - "\t\tbase_lid................0x%X\n" - "\t\tmaster_sm_base_lid......0x%X\n" + "\t\tPortNum.................%u\n" + "\t\tbase_lid................%u\n" + "\t\tmaster_sm_base_lid......%u\n" "\t\tcapability_mask.........0x%X\n", cl_ntoh16(p_pir->lid), p_pir->port_num, cl_ntoh16(p_pi->base_lid), cl_ntoh16(p_pi->master_sm_base_lid), @@ -427,7 +427,7 @@ static void dump_one_portinfo_record(void *data) printf("PortInfoRecord dump:\n" "\tRID:\n" "\t\tEndPortLid..............%u\n" - "\t\tPortNum.................0x%x\n" + "\t\tPortNum.................%u\n" "\t\tReserved................0x%x\n" "\tPortInfo dump:\n\t\t%s", cl_ntoh16(pir->lid), pir->port_num, pir->resv, buf2); @@ -630,8 +630,8 @@ static void dump_inform_info_record(void *data) "\t\tSubscriberEnum..........0x%X\n" "\t\tInformInfo dump:\n" "\t\tgid.....................%s\n" - "\t\tlid_range_begin.........0x%X\n" - "\t\tlid_range_end...........0x%X\n" + "\t\tlid_range_begin.........%u\n" + "\t\tlid_range_end...........%u\n" "\t\tis_generic..............0x%X\n" "\t\tsubscribe...............0x%X\n" "\t\ttrap_type...............0x%X\n" @@ -660,8 +660,8 @@ static void dump_inform_info_record(void *data) "\t\tSubscriberEnum..........0x%X\n" "\t\tInformInfo dump:\n" "\t\tgid.....................%s\n" - "\t\tlid_range_begin.........0x%X\n" - "\t\tlid_range_end...........0x%X\n" + "\t\tlid_range_begin.........%u\n" + "\t\tlid_range_end...........%u\n" "\t\tis_generic..............0x%X\n" "\t\tsubscribe...............0x%X\n" "\t\ttrap_type...............0x%X\n"