Add more debug

This commit is contained in:
Michal Moskal 2017-07-26 16:17:59 +01:00
parent f4c9e85924
commit 4c45ab8701
2 changed files with 6 additions and 0 deletions

View File

@ -938,6 +938,7 @@ static int do_write(struct fsg_common *common)
bh->outreq->length = amount;
bh->bulk_out_intended_length = amount;
bh->outreq->short_not_ok = 1;
printk("write transfer %d\n", amount);
START_TRANSFER_OR(common, bulk_out, bh->outreq,
&bh->outreq_busy, &bh->state)
/* Don't know what to do if
@ -1014,10 +1015,14 @@ static int do_write(struct fsg_common *common)
continue;
}
printk("before sleep\n");
/* Wait for something to happen */
rc = sleep_thread(common);
if (rc)
return rc;
printk("after sleep\n");
}
return -EIO; /* No default reply */

View File

@ -73,6 +73,7 @@
#undef DUMP_MSGS
#endif /* !DEBUG */
#define VERBOSE_DEBUG
#ifdef VERBOSE_DEBUG
#define VLDBG LDBG
#else