From patchwork Wed Feb 13 21:52:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 2139631 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 58F413FCA4 for ; Wed, 13 Feb 2013 21:52:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760376Ab3BMVwF (ORCPT ); Wed, 13 Feb 2013 16:52:05 -0500 Received: from prdiron-1.llnl.gov ([128.15.143.171]:31099 "EHLO prdiron-1.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110Ab3BMVwF (ORCPT ); Wed, 13 Feb 2013 16:52:05 -0500 X-Attachments: Received: from eris.llnl.gov (HELO trebuchet.chaos) ([128.115.7.7]) by prdiron-1.llnl.gov with SMTP; 13 Feb 2013 13:52:03 -0800 Date: Wed, 13 Feb 2013 13:52:03 -0800 From: Ira Weiny To: Hal Rosenstock Cc: "linux-rdma@vger.kernel.org" Subject: [PATCH] opensm/perfmgr: skip data counters when only printing errors Message-Id: <20130213135203.5a782dd09233a37a2bcb3ab2@llnl.gov> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.18.9; 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 Signed-off-by: Ira Weiny --- opensm/osm_perfmgr_db.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/opensm/osm_perfmgr_db.c b/opensm/osm_perfmgr_db.c index ab6c978..116bb07 100644 --- a/opensm/osm_perfmgr_db.c +++ b/opensm/osm_perfmgr_db.c @@ -869,6 +869,9 @@ static void dump_node_hr(db_node_t * node, FILE * fp, char *port, int err_only) fprintf(fp, " vl15_dropped : %" PRIu64 "\n", err->vl15_dropped); + if (err_only) + continue; + fprintf(fp, " Last Data Update : %s\n", last_data_update); fprintf(fp, " xmit_data : %" PRIu64,