crm_debug("%s  timeout=%d, timer=%d", prefix, action->timeout, action->timer->source_id);  crm_xml_trace(action->xml, "\t  Raw action");  if(to_file) { do_crm_log(LOG_INFO, __FUNCTION__, DEVEL_DIR"/te.log", "%s[Action %d] %s (%s: %s %s on %s)", prefix, action->id, action->complete?"Completed": action->invoked?"In-flight":"Pending", actiontype2text(action->type), crm_element_value(action->xml, XML_LRM_ATTR_TASK), crm_element_value(action->xml, XML_LRM_ATTR_RSCID), crm_element_value(action->xml, XML_LRM_ATTR_TARGET)); }
if(action->complete == FALSE) { crm_log_xml(log_level, "\t  Raw action", action->xml); }
print_action(const char *prefix, action_t *action, gboolean to_file) {	crm_debug("%s[Action %d] %s (%d - %s fail)",		  prefix,		  action->id,		  action->complete?"Completed":			action->invoked?"In-flight":"Pending",		  action->type,		  action->can_fail?"can":"cannot");	crm_debug("%s  timeout=%d, timer=%d",		  prefix,		  action->timeout,		  action->timer->source_id);	crm_xml_trace(action->xml, "\t  Raw action");	if(to_file) {		do_crm_log(LOG_INFO, __FUNCTION__, DEVEL_DIR"/te.log",			"%s[Action %d] %s (%s: %s %s on %s)",			prefix,			action->id,			action->complete?"Completed":			action->invoked?"In-flight":"Pending",			actiontype2text(action->type),			crm_element_value(action->xml, XML_LRM_ATTR_TASK),			crm_element_value(action->xml, XML_LRM_ATTR_RSCID),			crm_element_value(action->xml, XML_LRM_ATTR_TARGET));	}		  }