From patchwork Thu Apr 28 09:09:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Dorfman X-Patchwork-Id: 738791 X-Patchwork-Delegate: ira.weiny@intel.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3S91xxB018069 for ; Thu, 28 Apr 2011 09:02:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757415Ab1D1JBz (ORCPT ); Thu, 28 Apr 2011 05:01:55 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:42680 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757486Ab1D1JBy (ORCPT ); Thu, 28 Apr 2011 05:01:54 -0400 Received: by fxm17 with SMTP id 17so1673605fxm.19 for ; Thu, 28 Apr 2011 02:01:52 -0700 (PDT) Received: by 10.223.76.212 with SMTP id d20mr124618fak.5.1303981312632; Thu, 28 Apr 2011 02:01:52 -0700 (PDT) Received: from [172.25.1.69] (fwil.voltaire.com [193.47.165.2]) by mx.google.com with ESMTPS id j18sm505780faa.42.2011.04.28.02.01.50 (version=SSLv3 cipher=OTHER); Thu, 28 Apr 2011 02:01:51 -0700 (PDT) Message-ID: <4DB92ED0.4050907@dev.mellanox.co.il> Date: Thu, 28 Apr 2011 12:09:36 +0300 From: Eli Dorfman User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Ira Weiny CC: linux-rdma Subject: [PATCH] infiniband-diags/vendstat: Fixed general info query Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 28 Apr 2011 09:02:01 +0000 (UTC) Fixed general info query There was no output when query succeeded Signed-off-by: Eli Dorfman --- src/vendstat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/vendstat.c b/src/vendstat.c index 92a90c8..8dbd1ee 100644 --- a/src/vendstat.c +++ b/src/vendstat.c @@ -375,6 +375,7 @@ int main(int argc, char **argv) gi = (is3_general_info_t *) & buf; if (do_vendor(&portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_GET, IB_MLX_IS3_GENERAL_INFO, 0, gi)) + IBERROR("generalinfo query"); if (general_info) { /* dump IS3 or IS4 general info here */