xmlNodePtr root      = get_object_root("status", local_cib); xmlNodePtr nodes     = root->children;
xmlNodePtr root      = get_object_root(XML_CIB_TAG_STATUS, local_cib); xmlNodePtr nodes     = NULL;
dump_rsc_info(void){	xmlNodePtr local_cib = get_cib_copy();	xmlNodePtr root      = get_object_root("status", local_cib);	xmlNodePtr nodes     = root->children;	xmlNodePtr node      = NULL;	xmlNodePtr resources = NULL;	xmlNodePtr rsc       = NULL;		const char *path[] = {		"lrm",		"lrm_resources"	};		while(nodes != NULL) {		node = nodes;		nodes = nodes->next;				resources = find_xml_node_nested(node, path, DIMOF(path));		resources = resources->children;		while(resources != NULL) {			rsc = resources;			resources = resources->next;			const char *id       = xmlGetProp(rsc, "id");			const char *op_code  = xmlGetProp(rsc, "op_code");			const char *rsc_state = xmlGetProp(rsc, "rsc_state");			const char *last_op  = xmlGetProp(rsc, "last_op");			const char *on_node   = xmlGetProp(rsc, "on_node");			if(safe_str_eq(rsc_state, "stopped")) {				continue;			}						crm_info("Resource state: %s %s [%s after %s] on %s",				 id, rsc_state, op_code, last_op, on_node);		}	}}