cl_log(LOG_CRIT, "Not all required sections were present. Sections [%s, %s, %s, %s]\nCib was: %s", tmp1 == NULL? "ok":"null", tmp2 == NULL? "ok":"null", tmp3 == NULL? "ok":"null", tmp4 == NULL? "ok":"null", (char*)mem);
cl_log( LOG_CRIT, "Not all required sections were present. " "Sections [%s, %s, %s, %s]\nCib was: %s", tmp1 == NULL? "ok":"null", tmp2 == NULL? "ok":"null", tmp3 == NULL? "ok":"null", tmp4 == NULL? "ok":"null", (char*)mem); xmlFree(mem);
verifyCibXml(xmlNodePtr cib){    if (cib == NULL)    {		cl_log(LOG_INFO, "XML Buffer was empty.");		FNRET(FALSE);    }    xmlNodePtr tmp1 = find_xml_node(cib, XML_CIB_TAG_NODES);    xmlNodePtr tmp2 = find_xml_node(cib, XML_CIB_TAG_RESOURCES);    xmlNodePtr tmp3 = find_xml_node(cib, XML_CIB_TAG_CONSTRAINTS);    xmlNodePtr tmp4 = find_xml_node(cib, XML_CIB_TAG_STATUS);        if (tmp1 == NULL || tmp2 == NULL || tmp3 == NULL || tmp4 == NULL)    {		xmlChar *mem = NULL;		int size = 0;		// check for memory leak		xmlDocDumpMemory(cib->doc, &mem, &size);		cl_log(LOG_CRIT, "Not all required sections were present. Sections [%s, %s, %s, %s]\nCib was: %s", tmp1 == NULL? "ok":"null", tmp2 == NULL? "ok":"null", tmp3 == NULL? "ok":"null", tmp4 == NULL? "ok":"null", (char*)mem);		FNRET(FALSE);    }    // more integrity tests    FNRET(TRUE);}