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