crm_info("Local CIB _is_ the master instance\n");
crm_info("Local CIB _is_ the master instance");
void cibadmin_op_callback(	const HA_Message *msg, int call_id, int rc, crm_data_t *output){	char *admin_input_xml = NULL;		crm_info("our callback was invoked");	crm_log_message(LOG_MSG, msg);	exit_code = rc;	if(output != NULL) {		admin_input_xml = dump_xml_formatted(output);	}		if(safe_str_eq(cib_action, CRM_OP_CIB_ISMASTER) && rc != cib_ok) {		crm_info("Local CIB is _not_ the master instance");		fprintf(stderr, "Local CIB is _not_ the master instance\n");			} else if(safe_str_eq(cib_action, CRM_OP_CIB_ISMASTER)) {		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\n",			cib_action, rc, cib_error2string(rc));		fprintf(stderr, "Call %s failed (%d): %s\n",			cib_action, rc, cib_error2string(rc));		fprintf(stdout, "%s\n",	crm_str(admin_input_xml));	} else if(safe_str_eq(cib_action, CRM_OP_CIB_QUERY) && output==NULL) {		crm_err("Output expected in query response");		crm_log_message(LOG_ERR, msg);	} else if(output == NULL) {		crm_info("Call passed");	} else {		crm_info("Call passed");		fprintf(stdout, "%s\n", crm_str(admin_input_xml));	}	crm_free(admin_input_xml);	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);	}}