From patchwork Wed Sep 23 21:45:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 49607 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 n8NLmMBq024587 for ; Wed, 23 Sep 2009 21:48:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751814AbZIWVsR (ORCPT ); Wed, 23 Sep 2009 17:48:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752043AbZIWVsR (ORCPT ); Wed, 23 Sep 2009 17:48:17 -0400 Received: from nspiron-1.llnl.gov ([128.115.41.81]:52830 "EHLO nspiron-1.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751814AbZIWVsR (ORCPT ); Wed, 23 Sep 2009 17:48:17 -0400 X-Attachments: None Received: from mail-2.llnl.gov ([128.115.41.181]) by nspiron-1.llnl.gov with ESMTP; 23 Sep 2009 14:48:20 -0700 Received: from jeepcj7.llnl.gov (jeepcj7.llnl.gov [134.9.93.67]) by mail-2.llnl.gov (8.13.1/8.12.3/LLNL evision: 1.7 $) with SMTP id n8NLmK9X009046; Wed, 23 Sep 2009 14:48:20 -0700 Date: Wed, 23 Sep 2009 14:45:55 -0700 From: Ira Weiny To: Sasha Khapyorsky Cc: OpenFabrics , "linux-rdma@vger.kernel.org" Subject: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan Message-Id: <20090923144555.9efa2c75.weiny2@llnl.gov> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.10.4; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Ira Weiny Date: Wed, 23 Sep 2009 14:26:55 -0700 Subject: [PATCH] infiniband-diags/src/ibqueryerrors.c: fix bug when attempting a sub-fabric scan Also ibd_sm_id is never valid in this tool as the "-s" option is used for "suppress" Signed-off-by: Ira Weiny --- infiniband-diags/src/ibqueryerrors.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infiniband-diags/src/ibqueryerrors.c b/infiniband-diags/src/ibqueryerrors.c index f73ca6f..892e539 100644 --- a/infiniband-diags/src/ibqueryerrors.c +++ b/infiniband-diags/src/ibqueryerrors.c @@ -441,8 +441,8 @@ int main(int argc, char **argv) } else if (switch_guid_str) { if ((resolved = ib_resolve_portid_str_via(&portid, switch_guid_str, - IB_DEST_GUID, ibd_sm_id, - ibmad_port)) >= 0) + IB_DEST_GUID, NULL, + ibmad_port)) < 0) IBWARN("Failed to resolve %s; attempting full scan\n", switch_guid_str); }