crm_warn("CCM Activation failed %d (max) times", num_ccm_register_fails); if(wait_timer->source_id < 0) { startTimer(wait_timer); }
crm_warn("CCM Activation failed %d (%d max) times", num_ccm_register_fails, max_ccm_register_fails);  startTimer(wait_timer);
do_ccm_control(long long action,		enum crmd_fsa_cause cause,		enum crmd_fsa_state cur_state,		enum crmd_fsa_input current_input,		fsa_data_t *msg_data){	int      ret; 	int	 fsa_ev_fd;     	if(action & A_CCM_DISCONNECT){		oc_ev_unregister(fsa_ev_token);	}	if(action & A_CCM_CONNECT) {				crm_info("Registering with CCM");		oc_ev_register(&fsa_ev_token);				crm_info("Setting up CCM callbacks");		oc_ev_set_callback(fsa_ev_token, OC_EV_MEMB_CLASS,				   crmd_ccm_input_callback,				   NULL);		oc_ev_special(fsa_ev_token, OC_EV_MEMB_CLASS, 0/*don't care*/);				crm_info("Activating CCM token");		ret = oc_ev_activate(fsa_ev_token, &fsa_ev_fd);		if (ret){			oc_ev_unregister(fsa_ev_token);			if(++num_ccm_register_fails < max_ccm_register_fails) {				crm_warn("CCM Activation failed %d (max) times",					 num_ccm_register_fails);				if(wait_timer->source_id < 0) {					startTimer(wait_timer);				}								crmd_fsa_stall();				return I_NULL;			} else {				crm_err("CCM Activation failed %d (max) times",					 num_ccm_register_fails);				return I_FAIL;			}		}		crm_info("CCM Activation passed... all set to go!");/* GFDSource* */		G_main_add_fd(G_PRIORITY_LOW, fsa_ev_fd, FALSE, ccm_dispatch,			      fsa_ev_token,			      default_ipc_input_destroy);			}	if(action & ~(A_CCM_CONNECT|A_CCM_DISCONNECT)) {		crm_err("Unexpected action %s in %s",		       fsa_action2string(action), __FUNCTION__);	}		return I_NULL;}