Skip to content
This repository
Browse code

Add bulk read debug.

  • Loading branch information...
commit 426abc1583d274e4203f93a0393a09b7c48217e9 1 parent 5367aed
hanwen authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  mtp/mtp.go
3  mtp/mtp.go
@@ -477,6 +477,9 @@ func (d *Device) bulkRead(w io.Writer) (n int64, err error) {
477 477 break
478 478 }
479 479 }
  480 + if d.MTPDebug {
  481 + log.Printf("MTP bulk read 0x%x bytes.", lastRead)
  482 + }
480 483 if lastRead < len(toread) {
481 484 // short read.
482 485 break

0 comments on commit 426abc1

Please sign in to comment.
Something went wrong with that request. Please try again.