Add more debug
This commit is contained in:
		@@ -938,6 +938,7 @@ static int do_write(struct fsg_common *common)
 | 
				
			|||||||
			bh->outreq->length = amount;
 | 
								bh->outreq->length = amount;
 | 
				
			||||||
			bh->bulk_out_intended_length = amount;
 | 
								bh->bulk_out_intended_length = amount;
 | 
				
			||||||
			bh->outreq->short_not_ok = 1;
 | 
								bh->outreq->short_not_ok = 1;
 | 
				
			||||||
 | 
								printk("write transfer %d\n", amount);
 | 
				
			||||||
			START_TRANSFER_OR(common, bulk_out, bh->outreq,
 | 
								START_TRANSFER_OR(common, bulk_out, bh->outreq,
 | 
				
			||||||
					  &bh->outreq_busy, &bh->state)
 | 
										  &bh->outreq_busy, &bh->state)
 | 
				
			||||||
				/* Don't know what to do if
 | 
									/* Don't know what to do if
 | 
				
			||||||
@@ -1014,10 +1015,14 @@ static int do_write(struct fsg_common *common)
 | 
				
			|||||||
			continue;
 | 
								continue;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							printk("before sleep\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Wait for something to happen */
 | 
							/* Wait for something to happen */
 | 
				
			||||||
		rc = sleep_thread(common);
 | 
							rc = sleep_thread(common);
 | 
				
			||||||
		if (rc)
 | 
							if (rc)
 | 
				
			||||||
			return rc;
 | 
								return rc;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							printk("after sleep\n");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return -EIO;		/* No default reply */
 | 
						return -EIO;		/* No default reply */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -73,6 +73,7 @@
 | 
				
			|||||||
#undef DUMP_MSGS
 | 
					#undef DUMP_MSGS
 | 
				
			||||||
#endif /* !DEBUG */
 | 
					#endif /* !DEBUG */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define VERBOSE_DEBUG
 | 
				
			||||||
#ifdef VERBOSE_DEBUG
 | 
					#ifdef VERBOSE_DEBUG
 | 
				
			||||||
#define VLDBG	LDBG
 | 
					#define VLDBG	LDBG
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user