[BACK]Return to usb_subr.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/usb/usb_subr.c between version 1.244 and 1.245

version 1.244, 2020/03/14 03:01:36 version 1.245, 2020/05/31 17:52:58
Line 447  usbd_fill_iface_data(struct usbd_device 
Line 447  usbd_fill_iface_data(struct usbd_device 
                                 break;                                  break;
                 }                  }
                 /* passed end, or bad desc */                  /* passed end, or bad desc */
                 printf("usbd_fill_iface_data: bad descriptor(s): %s\n",                  if (p < end) {
                        ed->bLength == 0 ? "0 length" :                          if (ed->bLength == 0) {
                        ed->bDescriptorType == UDESC_INTERFACE ? "iface desc":                                  printf("%s: bad descriptor: 0 length\n",
                        "out of data");                                      __func__);
                           } else {
                                   printf("%s: bad descriptor: iface desc\n",
                                       __func__);
                           }
                   } else {
                           printf("%s: no desc found\n", __func__);
                   }
                 goto bad;                  goto bad;
         found:          found:
                 ifc->ui_endpoints[endpt].ue_edesc = ed;                  ifc->ui_endpoints[endpt].ue_edesc = ed;

Legend:
Removed from v.1.244  
changed lines
  Added in v.1.245

CVSweb <webmaster@jp.NetBSD.org>