summaryrefslogtreecommitdiff
path: root/nuttx/drivers/usbhost/usbhost_storage.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-31 20:59:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-31 20:59:23 +0000
commit9bdb91ec537f8a7889a816cf989e6d91054effe5 (patch)
treef05fe58bed011e432506fefdea124c1f9372b27b /nuttx/drivers/usbhost/usbhost_storage.c
parent714575b61092daa986ffdc535bec98d181114509 (diff)
downloadpx4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.tar.gz
px4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.tar.bz2
px4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.zip
Initial debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3226 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_storage.c')
-rw-r--r--nuttx/drivers/usbhost/usbhost_storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_storage.c b/nuttx/drivers/usbhost/usbhost_storage.c
index cfe6af668..89b969b30 100644
--- a/nuttx/drivers/usbhost/usbhost_storage.c
+++ b/nuttx/drivers/usbhost/usbhost_storage.c
@@ -1343,7 +1343,7 @@ static int usbhost_connect(FAR struct usbhost_class_s *class,
case USB_DESC_TYPE_INTERFACE:
{
- DEBUGASSERT(remaining >= sizeof(struct usb_ifdesc_s));
+ DEBUGASSERT(remaining >= USB_SIZEOF_IFDESC);
if ((found & USBHOST_IFFOUND) != 0)
{
/* Oops.. more than one interface. We don't know what to do with this. */
@@ -1358,7 +1358,7 @@ static int usbhost_connect(FAR struct usbhost_class_s *class,
case USB_DESC_TYPE_ENDPOINT:
{
FAR struct usb_epdesc_s *epdesc = (FAR struct usb_epdesc_s *)configdesc;
- DEBUGASSERT(remaining >= sizeof(struct usb_epdesc_s));
+ DEBUGASSERT(remaining >= USB_SIZEOF_EPDESC);
/* Check for a bulk endpoint. We only support the bulk-only
* protocol so I suppose anything else should really be an error.