rem: LOG(L_ERR, "submit_query: Error in snprintf\n");
add: LOG(L_ERR, "db_query: Error in snprintf\n");
context: int db_query(db_con_t* _h, db_key_t* _k, db_op_t* _op,	     db_val_t* _v, db_key_t* _c, int _n, int _nc,	     db_key_t _o, db_res_t** _r){	int off, ret;	if (!_h) {		LOG(L_ERR, "db_query(): Invalid parameter value\n");		return -1;	}	if (!_c) {		ret = snprintf(sql_buf, SQL_BUF_LEN, "select * from %s ", CON_TABLE(_h));		if (ret < 0 || ret >= SQL_BUF_LEN) goto error;		off = ret;	} else {		ret = snprintf(sql_buf, SQL_BUF_LEN, "select ");		if (ret < 0 || ret >= SQL_BUF_LEN) goto error;		off = ret;		ret = print_columns(sql_buf + off, SQL_BUF_LEN - off, _c, _nc);		if (ret < 0) return -1;		off += ret;		ret = snprintf(sql_buf + off, SQL_BUF_LEN - off, "from %s ", CON_TABLE(_h));		if (ret < 0 || ret >= (SQL_BUF_LEN - off)) goto error;		off += ret;	}	if (_n) {		ret = snprintf(sql_buf + off, SQL_BUF_LEN - off, "where ");		if (ret < 0 || ret >= (SQL_BUF_LEN - off)) goto error;		off += ret;		ret = print_where(CON_CONNECTION(_h), sql_buf + off, SQL_BUF_LEN - off, _k, _op, _v, _n);		if (ret < 0) return -1;;		off += ret;	}	if (_o) {		ret = snprintf(sql_buf + off, SQL_BUF_LEN - off, "order by %s", _o);		if (ret < 0 || ret >= (SQL_BUF_LEN - off)) goto error;		off += ret;	}		*(sql_buf + off) = '\0';	if (submit_query(_h, sql_buf) < 0) {		LOG(L_ERR, "submit_query(): Error while submitting query\n");		return -2;	}	return store_result(_h, _r); error:	LOG(L_ERR, "submit_query: Error in snprintf\n");	return -1;}