Ignore:
Timestamp:
2010-10-25T07:44:02Z (14 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/hcd.c

    r7a7bfeb3 r355f7c2  
    5757       
    5858        ipc_answer_0(iid, EOK);
    59         printf("%s: new client connected (phone %#x).\n", NAME, phone_hash);
    6059       
    6160        while (true) {
     
    112111                 * No other methods could be served now.
    113112                 */
     113                dprintf_inval_call(1, call, phone_hash);
    114114                ipc_answer_0(callid, ENOTSUP);
    115115        }
     
    117117
    118118int main(int argc, char * argv[])
    119 {
    120         printf("%s: Virtual USB host controller driver.\n", NAME);
     119{       
     120        printf("%s: virtual USB host controller driver.\n", NAME);
     121       
     122        int i;
     123        for (i = 1; i < argc; i++) {
     124                if (str_cmp(argv[i], "-d") == 0) {
     125                        debug_level++;
     126                }
     127        }
    121128       
    122129        int rc;
     
    138145        hub_init();
    139146       
    140         printf("%s: accepting connections.\n", NAME);
     147        printf("%s: accepting connections [devmap=%s, debug=%d].\n", NAME,
     148            DEVMAP_PATH, debug_level);
    141149        hc_manager();
    142150       
Note: See TracChangeset for help on using the changeset viewer.