* limitations under the License.
*/
+#define _GNU_SOURCE
+
#include <stdlib.h>
#include <string.h>
fd = __cursor->resultset_fd;
ret = lseek(fd, __cursor->resultset_col_name_offset, SEEK_SET);
if (ret < 0) {
- _LOGE("unable to seek in the resultset file: %d %s",
+ _LOGE("unable to seek in the resultset file: %ld %s",
__cursor->resultset_current_offset,
strerror_r(errno, err_buf, sizeof(err_buf)));
return DATA_CONTROL_ERROR_IO_ERROR;
fd = __cursor->resultset_fd;
ret = lseek(fd, __cursor->resultset_current_offset, SEEK_SET);
if (ret < 0) {
- _LOGE("unable to seek in the resultset file: %d %s",
+ _LOGE("unable to seek in the resultset file: %ld %s",
__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 %d", type,
+ _LOGE("type mismatch: requested for text type but %d present %ld", type,
__cursor->resultset_current_offset);
return DATA_CONTROL_ERROR_INVALID_PARAMETER;
}