crm_trace("Sending message: %s", crm_str(msg->msg_body));
crm_trace("Sending message: %s", crm_str(msg?msg->msg_body:NULL));
send_ipc_message(IPC_Channel *ipc_client, IPC_Message *msg){	int lpc = 0;	gboolean all_is_good = TRUE;	if (msg == NULL) {		crm_err("cant send NULL message");		all_is_good = FALSE;	}	else if (msg->msg_len <= 0) {		crm_err("cant send 0 sized message");		all_is_good = FALSE;	}	else if (msg->msg_len > MAXDATASIZE) {		crm_err("cant send msg... too big");		all_is_good = FALSE;	}		crm_trace("Sending message: %s", crm_str(msg->msg_body)); 	crm_verbose("Message is%s valid to send", all_is_good?"":" not");	if (ipc_client == NULL) {		all_is_good = FALSE;	}	crm_verbose("IPC Client is%s set.", all_is_good?"":" not");	if (all_is_good) {				while(lpc++ < MAX_IPC_FAIL		      && ipc_client->ops->send(ipc_client, msg) == IPC_FAIL)		{			crm_err("ipc channel blocked");			cl_shortsleep();		}	}		if (lpc == MAX_IPC_FAIL) {		crm_err("Could not send IPC, message.  Channel is dead.");		all_is_good = FALSE;	}	return all_is_good;}