Changes in uspace/drv/vhc/hc.c [0b31409:13101d06] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hc.c

    r0b31409 r13101d06  
    2727 */
    2828
    29 /** @addtogroup drvusbvhc
     29/** @addtogroup usb
    3030 * @{
    3131 */
     
    9292    usb_transaction_outcome_t outcome)
    9393{
    94         usb_log_debug2("Transaction " TRANSACTION_FORMAT " done: %s.\n",
     94        dprintf(3, "transaction " TRANSACTION_FORMAT " done, outcome: %s",
    9595            TRANSACTION_PRINTF(*transaction),
    9696            usb_str_transaction_outcome(outcome));
     
    108108        static unsigned int seed = 4573;
    109109       
    110         usb_log_info("Transaction processor ready.\n");
     110        printf("%s: transaction processor ready.\n", NAME);
    111111       
    112112        while (true) {
     
    125125                list_remove(first_transaction_link);
    126126               
    127                 usb_log_debug("Processing " TRANSACTION_FORMAT " [%s].\n",
     127
     128                dprintf(0, "about to process " TRANSACTION_FORMAT " [%s]",
    128129                    TRANSACTION_PRINTF(*transaction), ports);
    129130
     131                dprintf(3, "processing transaction " TRANSACTION_FORMAT "",
     132                    TRANSACTION_PRINTF(*transaction));
     133               
    130134                usb_transaction_outcome_t outcome;
    131135                outcome = virtdev_send_to_all(transaction);
     
    144148        fid_t fid = fibril_create(hc_manager_fibril, NULL);
    145149        if (fid == 0) {
    146                 usb_log_fatal("Failed to start HC manager fibril.\n");
     150                printf(NAME ": failed to start HC manager fibril\n");
    147151                return;
    148152        }
     
    168172        transaction->callback = callback;
    169173        transaction->callback_arg = arg;
    170 
     174       
     175        dprintf(3, "creating transaction " TRANSACTION_FORMAT,
     176            TRANSACTION_PRINTF(*transaction));
     177       
    171178        return transaction;
    172 }
    173 
    174 static void hc_add_transaction(transaction_t *transaction)
    175 {
    176         usb_log_debug("Adding transaction " TRANSACTION_FORMAT ".\n",
    177             TRANSACTION_PRINTF(*transaction));
    178         list_append(&transaction->link, &transaction_list);
    179179}
    180180
     
    190190            target, transfer_type,
    191191            buffer, len, callback, arg);
    192         hc_add_transaction(transaction);
     192        list_append(&transaction->link, &transaction_list);
    193193}
    194194
     
    203203            target, transfer_type,
    204204            buffer, len, callback, arg);
    205         hc_add_transaction(transaction);
     205        list_append(&transaction->link, &transaction_list);
    206206}
    207207
Note: See TracChangeset for help on using the changeset viewer.