All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opensm/perfmgr: skip data counters when only printing errors
@ 2013-02-13 21:52 Ira Weiny
       [not found] ` <20130213135203.5a782dd09233a37a2bcb3ab2-i2BcT+NCU+M@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Ira Weiny @ 2013-02-13 21:52 UTC (permalink / raw)
  To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org



Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
---
 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,
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-21 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-13 21:52 [PATCH] opensm/perfmgr: skip data counters when only printing errors Ira Weiny
     [not found] ` <20130213135203.5a782dd09233a37a2bcb3ab2-i2BcT+NCU+M@public.gmane.org>
2013-02-21 15:27   ` Hal Rosenstock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.