osm_sm_state_mgr.c Trivial log changes
PATCH 1/1 osm_sm_state_mgr.c Trivial log changes
---
opensm/osm_sm_state_mgr.c +6 -6
@@ -157,7 +157,7 @@ static void sm_state_mgr_start_polling(osm_sm_t * sm) cl_status =cl_timer_start (&sm->polling_timer, timeout);if (cl_status !=CL_SUCCESS )OSM_LOG (sm->p_log,OSM_LOG_ERROR ,"ERR 3210: " -"Failed to start timer\n" ); +"Failed to start polling timer\n" );OSM_LOG_EXIT (sm->p_log); }
@@ -201,8 +201,8 @@ void osm_sm_state_mgr_polling_callback(IN void *context)* osm_sm_state_mgr_process with signal OSM_SM_SIGNAL_POLLING_TIMEOUT */ sm->retry_number++; -OSM_LOG (sm->p_log,OSM_LOG_VERBOSE ,"Retry number:%d\n" , - sm->retry_number); +OSM_LOG (sm->p_log,OSM_LOG_VERBOSE ,"State %d, Retry number:%d\n" , + sm->p_subn->sm_state, sm->retry_number);if (sm->retry_number >= sm->p_subn->opt.polling_retry_number) { OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
@@ -219,7 +219,7 @@ void osm_sm_state_mgr_polling_callback(IN void *context) cl_status =cl_timer_start (&sm->polling_timer, timeout);if (cl_status !=CL_SUCCESS )OSM_LOG (sm->p_log,OSM_LOG_ERROR ,"ERR 3211: " -"Failed to restart timer\n" ); +"Failed to restart polling timer\n" ); Exit:OSM_LOG_EXIT (sm->p_log);
@@ -414,8 +414,8 @@ ib_api_status_t osm_sm_state_mgr_process(osm_sm_t * sm,* handover from it. */ OSM_LOG (sm->p_log,OSM_LOG_VERBOSE , -"Forcing heavy sweep. " -"Received OSM_SM_SIGNAL_HANDOVER or OSM_SM_SIGNAL_POLLING_TIMEOUT\n" ); +"Forcing heavy sweep. Received signal %s\n" , +osm_get_sm_mgr_signal_str (signal));/* Force set_client_rereg_on_sweep, we don't know what the other * SM may have configure/done on the fabric. */
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
On 6/19/2013 6:30 AM, Line Holen wrote:
A couple of nits below:
Quoted 18 lines
Signed-off-by Line Holen <[email protected]>---
opensm/osm_sm_state_mgr.c +1
-1@@ -157,7 +157,7 @@ static void sm_state_mgr_start_polling(osm_sm_t * sm) cl_status =cl_timer_start (&sm->polling_timer, timeout);if (cl_status !=CL_SUCCESS )OSM_LOG (sm->p_log,OSM_LOG_ERROR ,"ERR 3210: " -"Failed to start timer\n" ); +"Failed to start polling timer\n" );OSM_LOG_EXIT (sm->p_log); }
opensm/osm_sm_state_mgr.c void osm_sm_state_mgr_polling_callback(IN void *context) · line 205
Quoted 7 lines
opensm/osm_sm_state_mgr.c +2
-2@@ -201,8 +201,8 @@ void osm_sm_state_mgr_polling_callback(IN void *context)* osm_sm_state_mgr_process with signal OSM_SM_SIGNAL_POLLING_TIMEOUT */ sm->retry_number++; -OSM_LOG (sm->p_log,OSM_LOG_VERBOSE ,"Retry number:%d\n" , - sm->retry_number); +OSM_LOG (sm->p_log,OSM_LOG_VERBOSE ,"State %d, Retry number:%d\n" , + sm->p_subn->sm_state, sm->retry_number);
SM State rather than just State would be better and why not use osm_get_sm_mgr_state_str so:
OSM_LOG(sm->p_log, OSM_LOG_VERBOSE, "SM state %d (%s), Retry number:%d\n", sm->p_subn->sm_state, osm_get_sm_mgr_state_str(sm->p_subn->sm_state), sm->retry_number);
?
-- Hal
Quoted 14 lines
opensm/osm_sm_state_mgr.c +1
-1if (sm->retry_number >= sm->p_subn->opt.polling_retry_number) { OSM_LOG(sm->p_log, OSM_LOG_DEBUG,@@ -219,7 +219,7 @@ void osm_sm_state_mgr_polling_callback(IN void *context) cl_status =cl_timer_start (&sm->polling_timer, timeout);if (cl_status !=CL_SUCCESS )OSM_LOG (sm->p_log,OSM_LOG_ERROR ,"ERR 3211: " -"Failed to restart timer\n" ); +"Failed to restart polling timer\n" ); Exit:OSM_LOG_EXIT (sm->p_log);
opensm/osm_sm_state_mgr.c ib_api_status_t osm_sm_state_mgr_process(osm_sm_t * sm, · line 421
Quoted 10 lines
opensm/osm_sm_state_mgr.c +2
-2@@ -414,8 +414,8 @@ ib_api_status_t osm_sm_state_mgr_process(osm_sm_t * sm,* handover from it. */ OSM_LOG (sm->p_log,OSM_LOG_VERBOSE , -"Forcing heavy sweep. " -"Received OSM_SM_SIGNAL_HANDOVER or OSM_SM_SIGNAL_POLLING_TIMEOUT\n" ); +"Forcing heavy sweep. Received signal %s\n" , +osm_get_sm_mgr_signal_str (signal));/* Force set_client_rereg_on_sweep, we don't know what the other * SM may have configure/done on the fabric. */
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 51C1F682.8010405-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org
Quoted 31 lines · Hal Rosenstock
On 6/19/2013 6:30 AM, Line Holen wrote:
A couple of nits below:
Quoted 18 lines
Signed-off-by Line Holen<[email protected]>---
opensm/osm_sm_state_mgr.c +1
-1@@ -157,7 +157,7 @@ static void sm_state_mgr_start_polling(osm_sm_t * sm) cl_status =cl_timer_start (&sm->polling_timer, timeout);if (cl_status !=CL_SUCCESS )OSM_LOG (sm->p_log,OSM_LOG_ERROR ,"ERR 3210: " -"Failed to start timer\n" ); +"Failed to start polling timer\n" );OSM_LOG_EXIT (sm->p_log); }opensm/osm_sm_state_mgr.c void osm_sm_state_mgr_polling_callback(IN void *context) · line 205
Quoted 7 lines
opensm/osm_sm_state_mgr.c +2
-2@@ -201,8 +201,8 @@ void osm_sm_state_mgr_polling_callback(IN void *context)* osm_sm_state_mgr_process with signal OSM_SM_SIGNAL_POLLING_TIMEOUT */ sm->retry_number++; -OSM_LOG (sm->p_log,OSM_LOG_VERBOSE ,"Retry number:%d\n" , - sm->retry_number); +OSM_LOG (sm->p_log,OSM_LOG_VERBOSE ,"State %d, Retry number:%d\n" , + sm->p_subn->sm_state, sm->retry_number);SM State rather than just State would be better and why not use
osm_get_sm_mgr_state_strso:
Quoted 5 lines
OSM_LOG(sm->p_log, OSM_LOG_VERBOSE, "SM state %d (%s), Retry number:%d\n", sm->p_subn->sm_state, osm_get_sm_mgr_state_str(sm->p_subn->sm_state), sm->retry_number);?
I agree, this is better. v2 coming shortly.
Line
Quoted 23 lines
-- Hal
Quoted 20 lines
opensm/osm_sm_state_mgr.c +3
-3if (sm->retry_number>= sm->p_subn->opt.polling_retry_number) { OSM_LOG(sm->p_log, OSM_LOG_DEBUG,@@ -219,7 +219,7 @@ void osm_sm_state_mgr_polling_callback(IN void *context) cl_status =cl_timer_start (&sm->polling_timer, timeout);if (cl_status !=CL_SUCCESS )OSM_LOG (sm->p_log,OSM_LOG_ERROR ,"ERR 3211: " -"Failed to restart timer\n" ); +"Failed to restart polling timer\n" ); Exit:OSM_LOG_EXIT (sm->p_log);@@ -414,8 +414,8 @@ ib_api_status_t osm_sm_state_mgr_process(osm_sm_t * sm,* handover from it. */ OSM_LOG (sm->p_log,OSM_LOG_VERBOSE , -"Forcing heavy sweep. " -"Received OSM_SM_SIGNAL_HANDOVER or OSM_SM_SIGNAL_POLLING_TIMEOUT\n" ); +"Forcing heavy sweep. Received signal %s\n" , +osm_get_sm_mgr_signal_str (signal));
Quoted 8 lines
opensm/osm_sm_state_mgr.c ib_api_status_t osm_sm_state_mgr_process(osm_sm_t * sm, · line 421
Quoted 4 lines
opensm/osm_sm_state_mgr.c +0
-0/* Force set_client_rereg_on_sweep, we don't know what the other * SM may have configure/done on the fabric. */ --
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html