Permalink
Browse files

Add bulk read debug.

  • Loading branch information...
hanwen committed Feb 23, 2013
1 parent 5367aed commit 426abc1583d274e4203f93a0393a09b7c48217e9
Showing with 3 additions and 0 deletions.
  1. +3 −0 mtp/mtp.go
View
@@ -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

0 comments on commit 426abc1

Please sign in to comment.