Ignore:
Timestamp:
2010-10-25T07:44:02Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ca07cd3
Parents:
7a7bfeb3
Message:

Better debugging support in VHCD

Also, added some missing comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/bus/usb/hcd/virtual/conndev.c

    r7a7bfeb3 r355f7c2  
    4444/** Connection handler for communcation with virtual device.
    4545 *
     46 * This function also takes care of proper phone hung-up.
     47 *
    4648 * @param phone_hash Incoming phone hash.
    4749 * @param dev Virtual device handle.
     
    5153        assert(dev != NULL);
    5254       
    53         dprintf("phone%#x: virtual device %d connected",
    54             phone_hash, dev->id);
     55        dprintf(0, "virtual device connected through phone %#x", phone_hash);
    5556       
    5657        while (true) {
     
    6465                                ipc_hangup(dev->phone);
    6566                                ipc_answer_0(callid, EOK);
    66                                 dprintf("phone%#x: device %d hang-up",
    67                                     phone_hash, dev->id);
     67                                dprintf(0, "phone%#x: device hung-up",
     68                                    phone_hash);
    6869                                return;
    6970                       
     
    7374                       
    7475                        default:
     76                                dprintf_inval_call(2, call, phone_hash);
    7577                                ipc_answer_0(callid, EINVAL);
    7678                                break;
Note: See TracChangeset for help on using the changeset viewer.