crm_debug_2("Done with node %s",
crm_debug_3("Done with node %s",
unpack_nodes(crm_data_t * xml_nodes, GListPtr *nodes){	node_t *new_node   = NULL;	crm_data_t * attrs = NULL;	const char *id     = NULL;	const char *uname  = NULL;	const char *type   = NULL;	crm_debug_2("Begining unpack...");	xml_child_iter(		xml_nodes, xml_obj, XML_CIB_TAG_NODE,		new_node = NULL;		id     = crm_element_value(xml_obj, XML_ATTR_ID);		uname  = crm_element_value(xml_obj, XML_ATTR_UNAME);		type   = crm_element_value(xml_obj, XML_ATTR_TYPE);		crm_debug_2("Processing node %s/%s", uname, id);		attrs = find_xml_node(xml_obj, "attributes", FALSE);				if(id == NULL) {			pe_err("Must specify id tag in <node>");			continue;		}		if(type == NULL) {			pe_err("Must specify type tag in <node>");			continue;		}		crm_malloc0(new_node, sizeof(node_t));		if(new_node == NULL) {			return FALSE;		}				new_node->weight = 0;		new_node->fixed  = FALSE;		crm_malloc0(new_node->details,			   sizeof(struct node_shared_s));		if(new_node->details == NULL) {			crm_free(new_node);			return FALSE;		}		crm_debug_2("Creaing node for entry %s/%s", uname, id);		new_node->details->id		= id;		new_node->details->uname	= uname;		new_node->details->type		= node_ping;		new_node->details->online	= FALSE;		new_node->details->shutdown	= FALSE;		new_node->details->running_rsc	= NULL;		new_node->details->attrs        = g_hash_table_new_full(			g_str_hash, g_str_equal,			g_hash_destroy_str, g_hash_destroy_str);		if(have_quorum == FALSE && no_quorum_policy == no_quorum_stop) {			/* start shutting resources down */			new_node->weight = -INFINITY;		}						if(stonith_enabled) {			/* all nodes are unclean until we've seen their			 * status entry			 */			new_node->details->unclean = TRUE;		} else {			/* blind faith... */			new_node->details->unclean = FALSE; 		}						if(safe_str_eq(type, "member")) {			new_node->details->type = node_member;		}		add_node_attrs(xml_obj, new_node);		if(crm_is_true(g_hash_table_lookup(				       new_node->details->attrs, "standby"))) {			crm_info("Node %s is in standby-mode",				 new_node->details->uname);			new_node->weight = -INFINITY;		}				*nodes = g_list_append(*nodes, new_node);    		crm_debug_2("Done with node %s",			    crm_element_value(xml_obj, XML_ATTR_UNAME));		crm_action_debug_3(print_node("Added", new_node, FALSE));		);  	*nodes = g_list_sort(*nodes, sort_node_weight);	return TRUE;}