diff mbox

opensm/osm_log.h: osm_log_is_active should return true for syslog

Message ID 4BE91DF9.4020902@dev.mellanox.co.il (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Yevgeny Kliteynik May 11, 2010, 9:06 a.m. UTC
None
diff mbox

Patch

diff --git a/opensm/include/opensm/osm_log.h b/opensm/include/opensm/osm_log.h
index b2f105a..a494bc3 100644
--- a/opensm/include/opensm/osm_log.h
+++ b/opensm/include/opensm/osm_log.h
@@ -355,7 +355,7 @@  static inline void osm_log_set_level(IN osm_log_t * p_log,
 static inline boolean_t osm_log_is_active(IN const osm_log_t * p_log,
 					  IN osm_log_level_t level)
 {
-	return ((p_log->level & level) != 0);
+	return (((OSM_LOG_SYS | p_log->level) & level) != 0);
 }

 /*