crm_debug_action(print_color("Created color", new_color, TRUE));
crm_devel_action(print_color("Created color", new_color, TRUE));
create_color(GListPtr *colors, resource_t *resource, GListPtr node_list){	color_t *new_color = NULL;		crm_trace("Creating color");	crm_malloc(new_color, sizeof(color_t));	if(new_color == NULL) {		return NULL;	}		new_color->id           = color_id++;	new_color->local_weight = 1.0;		crm_trace("Creating color details");	crm_malloc(new_color->details, sizeof(struct color_shared_s));	if(new_color->details == NULL) {		crm_free(new_color);		return NULL;	}			new_color->details->id                  = new_color->id;	new_color->details->highest_priority    = -1;	new_color->details->chosen_node         = NULL;	new_color->details->candidate_nodes     = NULL;	new_color->details->allocated_resources = NULL;	new_color->details->pending             = TRUE;		if(resource != NULL) {		crm_trace("populating node list");		new_color->details->highest_priority = resource->priority;		new_color->details->candidate_nodes  =			node_list_dup(node_list, TRUE);	}		crm_debug_action(print_color("Created color", new_color, TRUE));	if(colors != NULL) {		*colors = g_list_append(*colors, new_color);      	}		return new_color;}