crm_debug("Skipping complete synapse %d", synapse->id);
crm_devel("Skipping complete synapse %d", synapse->id);
fire_synapse(synapse_t *synapse) {	if(synapse == NULL) {		crm_err("Synapse was NULL!");		return;	}		crm_debug("Checking if synapse %d needs to be fired", synapse->id);	if(synapse->complete) {		crm_debug("Skipping complete synapse %d", synapse->id);		return;			} else if(synapse->triggers_complete == FALSE) {		crm_debug("Synapse %d not yet satisfied", synapse->id);		return;	}		crm_devel("All inputs for synapse %d satisfied... invoking actions",		  synapse->id);	synapse->complete = TRUE;	slist_iter(		action, action_t, synapse->actions, lpc,		/* allow some leway */		int tmp_time = 2 * action->timeout;		gboolean passed = FALSE;		action->invoked = TRUE;		/* Invoke the action and start the timer */		passed = initiate_action(action);		if(passed == FALSE) {			crm_err("Failed initiating <%s id=%d> in synapse %d",				crm_element_name(action->xml), action->id, synapse->id);			send_abort("Action init failed", action->xml);			return;		} 		if(tmp_time > next_transition_timeout) {			next_transition_timeout = tmp_time;		}					);		crm_debug("Synapse %d complete", synapse->id);}