Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/htc.c

    r8a64320e rcde999a  
    3636#include <byteorder.h>
    3737#include <errno.h>
     38#include <str_error.h>
    3839#include "wmi.h"
    3940#include "htc.h"
     
    149150 * @param endpoint_id Destination endpoint.
    150151 *
    151  * @return EOK if succeed, negative error code otherwise.
     152 * @return EOK if succeed, error code otherwise.
    152153 *
    153154 */
     
    172173 * @param endpoint_id Destination endpoint.
    173174 *
    174  * @return EOK if succeed, negative error code otherwise.
     175 * @return EOK if succeed, error code otherwise.
    175176 *
    176177 */
     
    195196 * @param transferred_size Real size of read data.
    196197 *
    197  * @return EOK if succeed, negative error code otherwise.
     198 * @return EOK if succeed, error code otherwise.
    198199 *
    199200 */
     
    215216 * @param transferred_size Real size of read data.
    216217 *
    217  * @return EOK if succeed, negative error code otherwise.
     218 * @return EOK if succeed, error code otherwise.
    218219 *
    219220 */
     
    235236 *
    236237 * @return EOK if succeed, EINVAL when failed to connect service,
    237  *         negative error code otherwise.
     238 *         error code otherwise.
    238239 *
    239240 */
     
    264265        if (rc != EOK) {
    265266                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));
    267268                return rc;
    268269        }
     
    278279                free(buffer);
    279280                usb_log_error("Failed to receive HTC service connect response. "
    280                     "Error: %d\n", rc);
     281                    "Error: %s\n", str_error_name(rc));
    281282                return rc;
    282283        }
     
    308309 * @param htc_device HTC device structure.
    309310 *
    310  * @return EOK if succeed, negative error code otherwise.
     311 * @return EOK if succeed, error code otherwise.
    311312 *
    312313 */
     
    331332                free(buffer);
    332333                usb_log_error("Failed to send HTC config message. "
    333                     "Error: %d\n", rc);
     334                    "Error: %s\n", str_error_name(rc));
    334335                return rc;
    335336        }
     
    344345        if (rc != EOK) {
    345346                usb_log_error("Failed to receive HTC config response message. "
    346                     "Error: %d\n", rc);
     347                    "Error: %s\n", str_error_name(rc));
    347348        }
    348349       
     
    356357 * @param htc_device HTC device structure.
    357358 *
    358  * @return EOK if succeed, negative error code otherwise.
     359 * @return EOK if succeed, error code otherwise.
    359360 *
    360361 */
     
    376377        if (rc != EOK)
    377378                usb_log_error("Failed to send HTC setup complete message. "
    378                     "Error: %d\n", rc);
     379                    "Error: %s\n", str_error_name(rc));
    379380       
    380381        free(buffer);
     
    390391 *
    391392 * @return EOK if succeed, EINVAL if response error,
    392  *         negative error code otherwise.
     393 *         error code otherwise.
    393394 *
    394395 */
     
    404405                free(buffer);
    405406                usb_log_error("Failed to receive HTC check ready message. "
    406                     "Error: %d\n", rc);
     407                    "Error: %s\n", str_error_name(rc));
    407408                return rc;
    408409        }
     
    426427 * @param htc_device HTC device structure to be initialized.
    427428 *
    428  * @return EOK if succeed, negative error code otherwise.
     429 * @return EOK if succeed, error code otherwise.
    429430 *
    430431 */
     
    447448 * @param htc_device HTC device structure.
    448449 *
    449  * @return EOK if succeed, negative error code otherwise.
     450 * @return EOK if succeed, error code otherwise.
    450451 *
    451452 */
Note: See TracChangeset for help on using the changeset viewer.