if(rc != 0) { crm_err("Call failed (%d): %s", rc, cib_error2string(rc));
xml_text = dump_xml_formatted(output);  if(safe_str_eq(cib_action, CRM_OP_CIB_ISMASTER) && rc == cib_not_master) { crm_info("Local CIB is _not_ the master instance\n"); fprintf(stderr, "Local CIB is _not_ the master instance\n");  } else if(safe_str_eq(cib_action, CRM_OP_CIB_ISMASTER) && rc == cib_ok) { crm_info("Local CIB _is_ the master instance\n"); fprintf(stderr, "Local CIB _is_ the master instance\n");  } else if(rc != 0) { crm_warn("Call %s failed (%d): %s", cib_action, rc, cib_error2string(rc)); fprintf(stderr, "Call %s failed (%d): %s\n", cib_action, rc, cib_error2string(rc)); fprintf(stdout, "%s\n", xml_text);  } else if(output == NULL) { crm_info("Call passed");
void cibadmin_op_callback(	const struct ha_msg *msg, int call_id, int rc, xmlNodePtr output){	crm_info("our callback was invoked");	cl_log_message(msg);	if(rc != 0) {		crm_err("Call failed (%d): %s", rc, cib_error2string(rc));	} else {		crm_info("Call passed");	}				if(call_id == request_id) {		g_main_quit(mainloop);	} else {		crm_info("Message was not the response we were looking for (%d vs. %d", call_id, request_id);	}}