Ignore:
File:
1 edited

Legend:

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

    r582a0b8 rdd8ab1c  
    3333 */
    3434
     35#include <async.h>
    3536#include <ieee80211.h>
    3637#include <usb/classes/classes.h>
     
    4142#include <ddf/interrupt.h>
    4243#include <errno.h>
     44#include <str_error.h>
    4345#include <nic.h>
    4446#include <macros.h>
    45 #include <thread.h>
    4647#include "ath_usb.h"
    4748#include "wmi.h"
     
    784785                        free(buffer);
    785786                        usb_log_error("Error while uploading firmware. "
    786                             "Error: %d\n", rc);
     787                            "Error: %s\n", str_error_name(rc));
    787788                        return rc;
    788789                }
     
    818819       
    819820        /* Wait until firmware is ready - wait for 1 second to be sure. */
    820         thread_sleep(1);
     821        async_sleep(1);
    821822       
    822823        return rc;
     
    836837        if (rc != EOK) {
    837838                usb_log_error("Failed to create USB device: %s, "
    838                     "ERR_NUM = %d\n", err_msg, rc);
     839                    "ERR_NUM = %s\n", err_msg, str_error_name(rc));
    839840                return NULL;
    840841        }
     
    853854        if (rc != EOK) {
    854855                free(ar9271);
    855                 usb_log_error("Failed to initialize AR9271 structure: %d\n",
    856                     rc);
     856                usb_log_error("Failed to initialize AR9271 structure: %s\n",
     857                    str_error_name(rc));
    857858                return NULL;
    858859        }
Note: See TracChangeset for help on using the changeset viewer.