From 4c45ab8701acf08ee659cf4a3504ba8f5eb3c3b9 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Wed, 26 Jul 2017 16:17:59 +0100 Subject: [PATCH] Add more debug --- brick/kernel/f_mass_storage.c | 5 +++++ brick/kernel/storage_common.c | 1 + 2 files changed, 6 insertions(+) diff --git a/brick/kernel/f_mass_storage.c b/brick/kernel/f_mass_storage.c index 4c3451c6..13893063 100644 --- a/brick/kernel/f_mass_storage.c +++ b/brick/kernel/f_mass_storage.c @@ -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 */ diff --git a/brick/kernel/storage_common.c b/brick/kernel/storage_common.c index 868d8ee8..88ecdda3 100644 --- a/brick/kernel/storage_common.c +++ b/brick/kernel/storage_common.c @@ -73,6 +73,7 @@ #undef DUMP_MSGS #endif /* !DEBUG */ +#define VERBOSE_DEBUG #ifdef VERBOSE_DEBUG #define VLDBG LDBG #else