Changeset 75732da in mainline for uspace/lib/usbvirt


Ignore:
Timestamp:
2010-12-13T07:20:20Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
309dea52
Parents:
84439d7 (diff), 37f7cfe (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge development/ changes

Location:
uspace/lib/usbvirt/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/src/callback.c

    r84439d7 r75732da  
    153153         * If the request was processed, we will send data back.
    154154         */
    155         if (rc == EOK) {
     155        if ((rc == EOK) && (expected_len > 0)) {
    156156                size_t receive_len;
    157157                ipc_callid_t callid;
  • uspace/lib/usbvirt/src/main.c

    r84439d7 r75732da  
    183183/** Create necessary phones for communication with virtual HCD.
    184184 * This function wraps following calls:
    185  * -# open <code>/dev/devices/\\vhc</code> for reading
     185 * -# open <code>/dev/devices/\\virt\\usbhc for reading
    186186 * -# access phone of file opened in previous step
    187187 * -# create callback through just opened phone
     
    203203        }
    204204       
    205         const char *vhc_path = "/vhc";
     205        const char *vhc_path = "/virt/usbhc";
    206206        int rc;
    207207        devman_handle_t handle;
  • uspace/lib/usbvirt/src/transaction.c

    r84439d7 r75732da  
    183183                                actual_size = size;
    184184                        }
     185                        device->lib_debug(device, 1, USBVIRT_DEBUGTAG_TRANSACTION,
     186                            "in transaction: will copy %zu bytes", actual_size);
    185187                        if (actual_size > 0) {
    186188                                memcpy(buffer, transfer->data, actual_size);
Note: See TracChangeset for help on using the changeset viewer.