ret = lseek(fd, __cursor->resultset_col_name_offset, SEEK_SET);
if (ret < 0) {
_LOGE("unable to seek in the resultset file: %ld %s",
- __cursor->resultset_current_offset,
+ (long)__cursor->resultset_current_offset,
strerror_r(errno, err_buf, sizeof(err_buf)));
return DATA_CONTROL_ERROR_IO_ERROR;
}
ret = lseek(fd, __cursor->resultset_current_offset, SEEK_SET);
if (ret < 0) {
_LOGE("unable to seek in the resultset file: %ld %s",
- __cursor->resultset_current_offset,
+ (long)__cursor->resultset_current_offset,
strerror_r(errno, err_buf, sizeof(err_buf)));
return DATA_CONTROL_ERROR_IO_ERROR;
}
if (type != (int)DATA_CONTROL_SQL_COLUMN_TYPE_TEXT) {
_LOGE("type mismatch: requested for text type but %d present %ld", type,
- __cursor->resultset_current_offset);
+ (long)__cursor->resultset_current_offset);
return DATA_CONTROL_ERROR_INVALID_PARAMETER;
}