diff mbox

[2/3] opensm/osm_perfmgr.c: Add log message when perfmgr sweep is skipped

Message ID 1403891733.30332.420.camel@auk59.llnl.gov (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Al Chu June 27, 2014, 5:55 p.m. UTC
Signed-off-by: Albert L. Chu <chu11@llnl.gov>
---
 opensm/osm_perfmgr.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/opensm/osm_perfmgr.c b/opensm/osm_perfmgr.c
index 2b7ea6a..bfa63dc 100644
--- a/opensm/osm_perfmgr.c
+++ b/opensm/osm_perfmgr.c
@@ -1017,6 +1017,9 @@  void osm_perfmgr_process(osm_perfmgr_t * pm)
 	if (pm->sweep_state == PERFMGR_SWEEP_ACTIVE ||
 	    pm->sweep_state == PERFMGR_SWEEP_SUSPENDED) {
 		cl_spinlock_release(&pm->lock);
+		OSM_LOG(pm->log, OSM_LOG_INFO,
+			"PM sweep state %d, skipping sweep\n",
+			pm->sweep_state);
 		return;
 	}