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