Revision 079d0b7f hw/usb-net.c

b/hw/usb-net.c
1210 1210

  
1211 1211
    switch(p->pid) {
1212 1212
    case USB_TOKEN_IN:
1213
        switch (p->devep) {
1213
        switch (p->ep->nr) {
1214 1214
        case 1:
1215 1215
            ret = usb_net_handle_statusin(s, p);
1216 1216
            break;
......
1225 1225
        break;
1226 1226

  
1227 1227
    case USB_TOKEN_OUT:
1228
        switch (p->devep) {
1228
        switch (p->ep->nr) {
1229 1229
        case 2:
1230 1230
            ret = usb_net_handle_dataout(s, p);
1231 1231
            break;
......
1243 1243
    if (ret == USB_RET_STALL)
1244 1244
        fprintf(stderr, "usbnet: failed data transaction: "
1245 1245
                        "pid 0x%x ep 0x%x len 0x%zx\n",
1246
                        p->pid, p->devep, p->iov.size);
1246
                        p->pid, p->ep->nr, p->iov.size);
1247 1247
    return ret;
1248 1248
}
1249 1249

  

Also available in: Unified diff