From patchwork Tue Oct 13 13:04:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 53402 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 n9DDAIqf026543 for ; Tue, 13 Oct 2009 13:10:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759705AbZJMNEz (ORCPT ); Tue, 13 Oct 2009 09:04:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759750AbZJMNEz (ORCPT ); Tue, 13 Oct 2009 09:04:55 -0400 Received: from qmta09.westchester.pa.mail.comcast.net ([76.96.62.96]:39677 "EHLO QMTA09.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759705AbZJMNEy (ORCPT ); Tue, 13 Oct 2009 09:04:54 -0400 Received: from OMTA12.westchester.pa.mail.comcast.net ([76.96.62.44]) by QMTA09.westchester.pa.mail.comcast.net with comcast id sBoi1c00F0xGWP859D4Kko; Tue, 13 Oct 2009 13:04:19 +0000 Received: from hal.comcast.net ([75.69.247.31]) by OMTA12.westchester.pa.mail.comcast.net with comcast id sD481c0070hNrtn3YD48MB; Tue, 13 Oct 2009 13:04:19 +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 n9DD5KhG020231; Tue, 13 Oct 2009 09:05:25 -0400 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id n9DD4s3x020201; Tue, 13 Oct 2009 09:04:54 -0400 Date: Tue, 13 Oct 2009 09:04:54 -0400 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] infiniband-diags/saquery.c: Modify dump_path_record Message-ID: <20091013130454.GA20198@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 d880261..6c44b63 100644 --- a/infiniband-diags/src/saquery.c +++ b/infiniband-diags/src/saquery.c @@ -312,8 +312,7 @@ static void dump_path_record(void *data) "\t\trate....................0x%X\n" "\t\tpkt_life................0x%X\n" "\t\tpreference..............0x%X\n" - "\t\tresv2...................0x%X\n" - "\t\tresv3...................0x%X\n", + "\t\tresv2...................0x%02X%02X%02X%02X%02X%02X\n", cl_ntoh64(p_pr->service_id), inet_ntop(AF_INET6, p_pr->dgid.raw, gid_str, sizeof gid_str), inet_ntop(AF_INET6, p_pr->sgid.raw, gid_str2, sizeof gid_str2), @@ -322,7 +321,8 @@ static void dump_path_record(void *data) cl_ntoh16(p_pr->pkey), ib_path_rec_qos_class(p_pr), ib_path_rec_sl(p_pr), p_pr->mtu, p_pr->rate, p_pr->pkt_life, p_pr->preference, - *(uint32_t *) & p_pr->resv2, *((uint16_t *) & p_pr->resv2 + 2)); + p_pr->resv2[0], p_pr->resv2[1], p_pr->resv2[2], + p_pr->resv2[3], p_pr->resv2[4], p_pr->resv2[5]); } static void dump_class_port_info(void *data)