int lpc = 0;
print_resource(const char *pre_text, resource_t *rsc, gboolean details){ 	int lpc = 0;	if(rsc == NULL) {		crm_debug("%s%s: <NULL>",		       pre_text==NULL?"":pre_text,		       pre_text==NULL?"":": ");		return;	}	crm_debug("%s%s%s%sResource %s: (priority=%f, color=%d, now=%s)",	       pre_text==NULL?"":pre_text,	       pre_text==NULL?"":": ",	       rsc->provisional?"Provisional ":"",	       rsc->runnable?"":"(Non-Startable) ",	       rsc->id,	       (double)rsc->priority,	       safe_val3(-1, rsc, color, id),	       safe_val4(NULL, rsc, cur_node, details, id));	crm_debug("\t%d candidate colors, %d allowed nodes, %d rsc_cons and %d node_cons",	       g_list_length(rsc->candidate_colors),	       g_list_length(rsc->allowed_nodes),	       g_list_length(rsc->rsc_cons),	       g_list_length(rsc->node_cons));		if(details) {		crm_debug("\t=== Actions");		print_action("\tStop: ", rsc->stop, FALSE);		print_action("\tStart: ", rsc->start, FALSE);				crm_debug("\t=== Colors");		slist_iter(			color, color_t, rsc->candidate_colors, lpc,			print_color("\t", color, FALSE)			);		crm_debug("\t=== Allowed Nodes");		slist_iter(			node, node_t, rsc->allowed_nodes, lpc,			print_node("\t", node, FALSE);			);	}}