task2text(order->lh_action_task)); crm_devel("RH-Side was: (%s/%s)", order->rh_rsc?order->rh_rsc->id:order->rh_action?order->rh_action->rsc->id:"<NULL>", task2text(order->rh_action_task));
order->lh_action_task); if(order->rh_rsc != NULL) { crm_devel("RH-Side was: (%s/%s)", order->rh_rsc->id, order->rh_action_task);  } else if(order->rh_action != NULL && order->rh_action->rsc != NULL) { crm_devel("RH-Side was: (%s/%s)", order->rh_action->rsc->id, order->rh_action_task);  } else if(order->rh_action != NULL) { crm_devel("RH-Side was: %s", order->rh_action_task); } else { crm_devel("RH-Side was NULL"); }
void native_rsc_order_lh(resource_t *lh_rsc, order_constraint_t *order){	GListPtr lh_actions = NULL;	action_t *lh_action = order->lh_action;	crm_verbose("Processing LH of ordering constraint %d", order->id);	switch(order->lh_action_task) {		case start_rsc:		case started_rsc:		case stop_rsc:		case stopped_rsc:			break;		default:			crm_err("Task \"%s\" from ordering %d isnt a resource action",				task2text(order->lh_action_task), order->id);			return;	}	if(lh_action != NULL) {		lh_actions = g_list_append(NULL, lh_action);	} else if(lh_action == NULL && lh_rsc != NULL) {		if(order->strength == pecs_must) {			crm_devel("No LH-Side (%s/%s) found for constraint..."				  " creating",				  lh_rsc->id, task2text(order->lh_action_task));			action_new(lh_rsc, order->lh_action_task, NULL, NULL);		}					lh_actions = find_actions(			lh_rsc->actions, order->lh_action_task, NULL);		if(lh_actions == NULL) {			crm_devel("No LH-Side (%s/%s) found for constraint",				  lh_rsc->id, task2text(order->lh_action_task));			crm_devel("RH-Side was: (%s/%s)",				  order->rh_rsc?order->rh_rsc->id:order->rh_action?order->rh_action->rsc->id:"<NULL>",				  task2text(order->rh_action_task));			return;		}	} else {		crm_warn("No LH-Side (%s) specified for constraint",			 task2text(order->lh_action_task));		crm_devel("RH-Side was: (%s/%s)",			  order->rh_rsc?order->rh_rsc->id:order->rh_action?order->rh_action->rsc->id:"<NULL>",			  task2text(order->rh_action_task));		return;	}	slist_iter(		lh_action_iter, action_t, lh_actions, lpc,		resource_t *rh_rsc = order->rh_rsc;		if(rh_rsc == NULL && order->rh_action) {			rh_rsc = order->rh_action->rsc;		}				if(rh_rsc) {			rh_rsc->fns->rsc_order_rh(				lh_action_iter, rh_rsc, order);		} else if(order->rh_action) {			order_actions(lh_action_iter, order->rh_action, order); 		}		);	pe_free_shallow_adv(lh_actions, FALSE);}