result = MTP_ERROR_IO_ERROR;
/* LCOV_EXCL_STOP */
} else {
+ LIBMTP_Set_Debug(LIBMTP_DEBUG_PTP);
ret = LIBMTP_Get_File_To_File_Descriptor(device, object_handle, fd, NULL, NULL);
-
+ LIBMTP_Set_Debug(LIBMTP_DEBUG_ALL);
if (ret != 0) {
/* LCOV_EXCL_START */
MTP_LOGE("get descriptor fail - ret: %d", ret);
result = MTP_ERROR_IO_ERROR;
/* LCOV_EXCL_STOP */
} else {
+ LIBMTP_Set_Debug(LIBMTP_DEBUG_PTP);
ret = LIBMTP_GetPartialObject(device, object_handle, (uint32_t)offset, (uint32_t)max_bytes, &data, &actual_written);
+ LIBMTP_Set_Debug(LIBMTP_DEBUG_ALL);
if (ret == 0) {
/* LCOV_EXCL_START */
/* LCOV_EXCL_STOP */
} else {
MTP_LOGI("get thumbnail start. object_handle : %d, dest_path : %s", object_handle, dest_path);
+ LIBMTP_Set_Debug(LIBMTP_DEBUG_PTP);
ret = LIBMTP_Get_Thumbnail(device, object_handle, &thumb_data, &thumb_size);
-
+ LIBMTP_Set_Debug(LIBMTP_DEBUG_ALL);
if (ret == 0) {
MTP_LOGI("get thumbnail end. thumb_size : %d", thumb_size);
ret = write(fd, thumb_data, thumb_size);