[ofa-general] [PATCH TRIVIAL] opensm: remove NOISE_L macros from osm_ucast_updn.c

Sasha Khapyorsky sashak at voltaire.com
Wed Feb 28 13:52:50 PST 2007


This removes NOISE_L macros completely.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 osm/opensm/osm_ucast_updn.c |   38 --------------------------------------
 1 files changed, 0 insertions(+), 38 deletions(-)

diff --git a/osm/opensm/osm_ucast_updn.c b/osm/opensm/osm_ucast_updn.c
index b8dd61c..72d943b 100644
--- a/osm/opensm/osm_ucast_updn.c
+++ b/osm/opensm/osm_ucast_updn.c
@@ -97,12 +97,6 @@ struct updn_node {
   unsigned visited;
 };
 
-#ifndef WIN32
-#define NOISE_L(log, fmt, arg...)
-#else
-#define NOISE_L
-#endif
-
 /* ///////////////////////////////// */
 /*  Statics                          */
 /* ///////////////////////////////// */
@@ -258,19 +252,10 @@ __updn_bfs_by_node(
   {
     ib_net64_t remote_guid, current_guid;
 
-    NOISE_L( p_log, OSM_LOG_DEBUG,
-             "__updn_bfs_by_node: "
-             "Starting a new iteration with %zu elements in current list\n",
-             cl_qlist_count(&list) );
-
     u = (struct updn_node *)cl_qlist_remove_head(&list);
     u->visited = 0; /* cleanup */
     current_dir = u->dir;
     current_guid = osm_node_get_node_guid(u->sw->p_node);
-    NOISE_L( p_log, OSM_LOG_DEBUG,
-             "__updn_bfs_by_node: "
-             "Visiting port GUID 0x%" PRIx64 "\n",
-             cl_ntoh64(current_guid) );
     /* Go over all ports of the switch and find unvisited remote nodes */
     for ( pn = 1; pn < u->sw->num_ports; pn++ )
     {
@@ -293,12 +278,6 @@ __updn_bfs_by_node(
                                 current_guid, remote_guid,
                                 u->is_root, rem_u->is_root);
 
-      NOISE_L( p_log, OSM_LOG_DEBUG,
-               "__updn_bfs_by_node: "
-               "move from 0x%016" PRIx64 " rank: %u "
-               "to 0x%016" PRIx64" rank: %u\n",
-               cl_ntoh64(current_guid), u->rank,
-               cl_ntoh64(remote_guid), rem_u->rank );
       /* Check if this is a legal step : the only illegal step is going
          from DOWN to UP */
       if ((current_dir == DOWN) && (next_dir == UP))
@@ -317,15 +296,6 @@ __updn_bfs_by_node(
       remote_min_hop = osm_switch_get_hop_count(p_remote_sw, root_lid, pn_rem);
       if (current_min_hop + 1 < remote_min_hop)
       {
-        NOISE_L( p_log, OSM_LOG_DEBUG,
-                 "__updn_bfs_by_node (less): "
-                 "Setting Min Hop Table of switch: 0x%" PRIx64
-                 "\n\t\tCurrent hop count is: %d, next hop count: %d"
-                 "\n\tlid to set: 0x%x"
-                 "\n\tport number: 0x%X"
-                 "\n\thops number: %d\n",
-                 cl_ntoh64(remote_guid), remote_min_hop,current_min_hop + 1,
-                 root_lid, pn_rem, current_min_hop + 1 );
         set_hop_return_value = osm_switch_set_hops(p_remote_sw, root_lid, pn_rem, current_min_hop + 1);
         if (set_hop_return_value)
         {
@@ -340,11 +310,6 @@ __updn_bfs_by_node(
           /* Insert updn_switch item into the list */
           rem_u->dir = next_dir;
           rem_u->visited = 1;
-          NOISE_L( p_log, OSM_LOG_DEBUG,
-                   "__updn_bfs_by_node: "
-                   "Inserting new element to the next list: guid=0x%" PRIx64 " %s\n",
-                   cl_ntoh64(rem_u->sw->p_node->node_info.port_guid),
-                   (rem_u->dir == UP ? "UP" : "DOWN"));
           cl_qlist_insert_tail(&list, &rem_u->list);
         }
       }
@@ -578,9 +543,6 @@ updn_subn_rank(
       {
         remote_u = p_remote_physp->p_node->sw->priv;
         port_guid = p_remote_physp->port_guid;
-        NOISE_L( p_log, OSM_LOG_DEBUG,
-                 "updn_subn_rank: "
-                 "Ranking port GUID 0x%" PRIx64 "\n", cl_ntoh64(port_guid) );
         did_cause_update = __updn_update_rank(remote_u, rank);
 
         osm_log( p_log, OSM_LOG_DEBUG,
-- 
1.5.0.1.40.gb40d




More information about the general mailing list