From patchwork Fri Oct 23 17:57:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 55605 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 n9NHvKSq004845 for ; Fri, 23 Oct 2009 18:00:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751120AbZJWSAM (ORCPT ); Fri, 23 Oct 2009 14:00:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751915AbZJWSAM (ORCPT ); Fri, 23 Oct 2009 14:00:12 -0400 Received: from qmta13.westchester.pa.mail.comcast.net ([76.96.59.243]:54553 "EHLO QMTA13.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120AbZJWSAL (ORCPT ); Fri, 23 Oct 2009 14:00:11 -0400 Received: from OMTA24.westchester.pa.mail.comcast.net ([76.96.62.76]) by QMTA13.westchester.pa.mail.comcast.net with comcast id wBxK1c0021ei1Bg5DJ0Gak; Fri, 23 Oct 2009 18:00:16 +0000 Received: from hal.comcast.net ([75.69.247.31]) by OMTA24.westchester.pa.mail.comcast.net with comcast id wJ7D1c0040hNrtn3kJ7DLz; Fri, 23 Oct 2009 18:07:14 +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 n9NHw7nl015940; Fri, 23 Oct 2009 13:58:12 -0400 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id n9NHvkWx015909; Fri, 23 Oct 2009 13:57:46 -0400 Date: Fri, 23 Oct 2009 13:57:46 -0400 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] infiniband-diags/ibqueryerrors.c: Cosmetic changes Message-ID: <20091023175746.GA15906@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/ibqueryerrors.c b/infiniband-diags/src/ibqueryerrors.c index 0842eb3..625bd8e 100644 --- a/infiniband-diags/src/ibqueryerrors.c +++ b/infiniband-diags/src/ibqueryerrors.c @@ -282,12 +282,12 @@ static void print_port(ib_portid_t * portid, uint16_t cap_mask, char *node_name, if (!pma_query_via(pc, portid, portnum, ibd_timeout, IB_GSI_PORT_COUNTERS, ibmad_port)) { - IBWARN("IB_GSI_PORT_COUNTERS query failed on %s, %s port %d\n", + IBWARN("IB_GSI_PORT_COUNTERS query failed on %s, %s port %d", node_name, portid2str(portid), portnum); return; } if (!(cap_mask & 0x1000)) { - /* if PortCounters:PortXmitWait not suppported clear this counter */ + /* if PortCounters:PortXmitWait not supported clear this counter */ uint32_t foo = 0; mad_encode_field(pc, IB_PC_XMT_WAIT_F, &foo); } @@ -515,14 +515,14 @@ int main(int argc, char **argv) if ((resolved = ib_resolve_portid_str_via(&portid, dr_path, IB_DEST_DRPATH, NULL, ibmad_port)) < 0) - IBWARN("Failed to resolve %s; attempting full scan\n", + IBWARN("Failed to resolve %s; attempting full scan", dr_path); } else if (node_guid_str) { if ((resolved = ib_resolve_portid_str_via(&portid, node_guid_str, IB_DEST_GUID, ibd_sm_id, ibmad_port)) < 0) - IBWARN("Failed to resolve %s; attempting full scan\n", + IBWARN("Failed to resolve %s; attempting full scan", node_guid_str); } @@ -530,7 +530,7 @@ int main(int argc, char **argv) if ((fabric = ibnd_discover_fabric(ibmad_port, &portid, 0)) == NULL) IBWARN - ("Single node discover failed; attempting full scan\n"); + ("Single node discover failed; attempting full scan"); if (!fabric) /* do a full scan */ if ((fabric =