rem: DBG("submit_query(): mysql_ping failed\n");
add: DBG("submit_query: mysql_ping failed\n");
context: static int submit_query(db_con_t* _h, const char* _s){		time_t t;	int i, code;	if ((!_h) || (!_s)) {		LOG(L_ERR, "submit_query(): Invalid parameter value\n");		return -1;	}	if (ping_interval) {		t = time(0);		if ((t - CON_TIMESTAMP(_h)) > ping_interval) {			if (mysql_ping(CON_CONNECTION(_h))) {				DBG("submit_query(): mysql_ping failed\n");			}		}		CON_TIMESTAMP(_h) = t;	}	/* screws up the terminal when the query contains a BLOB :-( (by bogdan)	 * DBG("submit_query(): %s\n", _s);	 */	/* When a server connection is lost and a query is attempted, most of	 * the time the query will return a CR_SERVER_LOST, then at the second	 * attempt to execute it, the mysql lib will reconnect and succeed.	 * However is a few cases, the first attempt returns CR_SERVER_GONE_ERROR	 * the second CR_SERVER_LOST and only the third succeeds.	 * Thus the 3 in the loop count. Increasing the loop count over this	 * value shouldn't be needed, but it doesn't hurt either, since the loop	 * will most of the time stop at the second or sometimes at the third	 * iteration.     */	for (i=0; i<(auto_reconnect ? 3 : 1); i++) {		if (mysql_query(CON_CONNECTION(_h), _s)==0) {			return 0;		}		code = mysql_errno(CON_CONNECTION(_h));		if (code != CR_SERVER_GONE_ERROR && code != CR_SERVER_LOST) {			break;		}	}	LOG(L_ERR, "submit_query(): %s\n", mysql_error(CON_CONNECTION(_h)));	return -2;}