Changes in uspace/drv/vhc/hc.c [0b31409:13101d06] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hc.c
r0b31409 r13101d06 27 27 */ 28 28 29 /** @addtogroup drvusbvhc29 /** @addtogroup usb 30 30 * @{ 31 31 */ … … 92 92 usb_transaction_outcome_t outcome) 93 93 { 94 usb_log_debug2("Transaction " TRANSACTION_FORMAT " done: %s.\n",94 dprintf(3, "transaction " TRANSACTION_FORMAT " done, outcome: %s", 95 95 TRANSACTION_PRINTF(*transaction), 96 96 usb_str_transaction_outcome(outcome)); … … 108 108 static unsigned int seed = 4573; 109 109 110 usb_log_info("Transaction processor ready.\n");110 printf("%s: transaction processor ready.\n", NAME); 111 111 112 112 while (true) { … … 125 125 list_remove(first_transaction_link); 126 126 127 usb_log_debug("Processing " TRANSACTION_FORMAT " [%s].\n", 127 128 dprintf(0, "about to process " TRANSACTION_FORMAT " [%s]", 128 129 TRANSACTION_PRINTF(*transaction), ports); 129 130 131 dprintf(3, "processing transaction " TRANSACTION_FORMAT "", 132 TRANSACTION_PRINTF(*transaction)); 133 130 134 usb_transaction_outcome_t outcome; 131 135 outcome = virtdev_send_to_all(transaction); … … 144 148 fid_t fid = fibril_create(hc_manager_fibril, NULL); 145 149 if (fid == 0) { 146 usb_log_fatal("Failed to start HC manager fibril.\n");150 printf(NAME ": failed to start HC manager fibril\n"); 147 151 return; 148 152 } … … 168 172 transaction->callback = callback; 169 173 transaction->callback_arg = arg; 170 174 175 dprintf(3, "creating transaction " TRANSACTION_FORMAT, 176 TRANSACTION_PRINTF(*transaction)); 177 171 178 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);179 179 } 180 180 … … 190 190 target, transfer_type, 191 191 buffer, len, callback, arg); 192 hc_add_transaction(transaction);192 list_append(&transaction->link, &transaction_list); 193 193 } 194 194 … … 203 203 target, transfer_type, 204 204 buffer, len, callback, arg); 205 hc_add_transaction(transaction);205 list_append(&transaction->link, &transaction_list); 206 206 } 207 207
Note:
See TracChangeset
for help on using the changeset viewer.