Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add bulk read debug.

  • Loading branch information...
commit 426abc1583d274e4203f93a0393a09b7c48217e9 1 parent 5367aed
@hanwen authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  mtp/mtp.go
View
3  mtp/mtp.go
@@ -477,6 +477,9 @@ func (d *Device) bulkRead(w io.Writer) (n int64, err error) {
break
}
}
+ if d.MTPDebug {
+ log.Printf("MTP bulk read 0x%x bytes.", lastRead)
+ }
if lastRead < len(toread) {
// short read.
break
Please sign in to comment.
Something went wrong with that request. Please try again.