rem: printf("val2str(): Unknow data type\n");
add: DBG("val2str(): Unknow data type\n");
context: int val2str(db_val_t* _v, char* _s, int* _len){	int l;#ifdef PARANOID	if ((!_v) || (!_s) || (!_len) || (!*_len)) {		LOG(L_ERR, "val2str(): Invalid parameter value\n");		return FALSE;	}#endif	if (VAL_NULL(_v)) {		*_len = snprintf(_s, *_len, "NULL");		return TRUE;	}		switch(VAL_TYPE(_v)) {	case DB_INT:		if (int2str(VAL_INT(_v), _s, _len) == FALSE) {			LOG(L_ERR, "val2str(): Error while converting string to int\n");			return FALSE;		} else {			return TRUE;		}		break;	case DB_DOUBLE:		if (double2str(VAL_DOUBLE(_v), _s, _len) == FALSE) {			LOG(L_ERR, "val2str(): Error while converting string to double\n");			return FALSE;		} else {			return TRUE;		}		break;	case DB_STRING:		l = strlen(VAL_STRING(_v));		if (*_len < (l + 2)) {			LOG(L_ERR, "val2str(): Destination buffer too short\n");			return FALSE;		} else {			*_s++ = '\'';			memcpy(_s, VAL_STRING(_v), l);			*(_s + l) = '\'';			*(_s + l + 1) = '\0'; /* FIXME */			*_len = l + 2;			return TRUE;		}		break;	case DB_DATETIME:		if (time2str(VAL_TIME(_v), _s, _len) == FALSE) {			LOG(L_ERR, "val2str(): Error while converting string to time_t\n");			return FALSE;		} else {			return TRUE;		}		break;	default:		printf("val2str(): Unknow data type\n");		return FALSE;	}	return FALSE;}