Changes in uspace/drv/nic/ar9271/htc.c [8a64320e:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/htc.c
r8a64320e rcde999a 36 36 #include <byteorder.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 #include "wmi.h" 39 40 #include "htc.h" … … 149 150 * @param endpoint_id Destination endpoint. 150 151 * 151 * @return EOK if succeed, negativeerror code otherwise.152 * @return EOK if succeed, error code otherwise. 152 153 * 153 154 */ … … 172 173 * @param endpoint_id Destination endpoint. 173 174 * 174 * @return EOK if succeed, negativeerror code otherwise.175 * @return EOK if succeed, error code otherwise. 175 176 * 176 177 */ … … 195 196 * @param transferred_size Real size of read data. 196 197 * 197 * @return EOK if succeed, negativeerror code otherwise.198 * @return EOK if succeed, error code otherwise. 198 199 * 199 200 */ … … 215 216 * @param transferred_size Real size of read data. 216 217 * 217 * @return EOK if succeed, negativeerror code otherwise.218 * @return EOK if succeed, error code otherwise. 218 219 * 219 220 */ … … 235 236 * 236 237 * @return EOK if succeed, EINVAL when failed to connect service, 237 * negativeerror code otherwise.238 * error code otherwise. 238 239 * 239 240 */ … … 264 265 if (rc != EOK) { 265 266 free(buffer); 266 usb_log_error("Failed to send HTC message. Error: % d\n", rc);267 usb_log_error("Failed to send HTC message. Error: %s\n", str_error_name(rc)); 267 268 return rc; 268 269 } … … 278 279 free(buffer); 279 280 usb_log_error("Failed to receive HTC service connect response. " 280 "Error: % d\n", rc);281 "Error: %s\n", str_error_name(rc)); 281 282 return rc; 282 283 } … … 308 309 * @param htc_device HTC device structure. 309 310 * 310 * @return EOK if succeed, negativeerror code otherwise.311 * @return EOK if succeed, error code otherwise. 311 312 * 312 313 */ … … 331 332 free(buffer); 332 333 usb_log_error("Failed to send HTC config message. " 333 "Error: % d\n", rc);334 "Error: %s\n", str_error_name(rc)); 334 335 return rc; 335 336 } … … 344 345 if (rc != EOK) { 345 346 usb_log_error("Failed to receive HTC config response message. " 346 "Error: % d\n", rc);347 "Error: %s\n", str_error_name(rc)); 347 348 } 348 349 … … 356 357 * @param htc_device HTC device structure. 357 358 * 358 * @return EOK if succeed, negativeerror code otherwise.359 * @return EOK if succeed, error code otherwise. 359 360 * 360 361 */ … … 376 377 if (rc != EOK) 377 378 usb_log_error("Failed to send HTC setup complete message. " 378 "Error: % d\n", rc);379 "Error: %s\n", str_error_name(rc)); 379 380 380 381 free(buffer); … … 390 391 * 391 392 * @return EOK if succeed, EINVAL if response error, 392 * negativeerror code otherwise.393 * error code otherwise. 393 394 * 394 395 */ … … 404 405 free(buffer); 405 406 usb_log_error("Failed to receive HTC check ready message. " 406 "Error: % d\n", rc);407 "Error: %s\n", str_error_name(rc)); 407 408 return rc; 408 409 } … … 426 427 * @param htc_device HTC device structure to be initialized. 427 428 * 428 * @return EOK if succeed, negativeerror code otherwise.429 * @return EOK if succeed, error code otherwise. 429 430 * 430 431 */ … … 447 448 * @param htc_device HTC device structure. 448 449 * 449 * @return EOK if succeed, negativeerror code otherwise.450 * @return EOK if succeed, error code otherwise. 450 451 * 451 452 */
Note:
See TracChangeset
for help on using the changeset viewer.