Ignore:
File:
1 edited

Legend:

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

    rcde999a rfb1007ef  
    3535#include <usb/debug.h>
    3636#include <errno.h>
    37 #include <str_error.h>
    38 #include <stdlib.h>
     37#include <malloc.h>
    3938#include <mem.h>
    4039#include <byteorder.h>
     
    4746 * @param res        Stored result.
    4847 *
    49  * @return EOK if succeed, error code otherwise.
     48 * @return EOK if succeed, negative error code otherwise.
    5049 *
    5150 */
     
    7978 * @param val        Value to be written
    8079 *
    81  * @return EOK if succeed, error code otherwise.
     80 * @return EOK if succeed, negative error code otherwise.
    8281 *
    8382 */
     
    112111 * @param clear_bit  Bit to be cleared.
    113112 *
    114  * @return EOK if succeed, error code otherwise.
     113 * @return EOK if succeed, negative error code otherwise.
    115114 *
    116115 */
     
    146145 * @param set_bit    Bit to be set.
    147146 *
    148  * @return EOK if succeed, error code otherwise.
     147 * @return EOK if succeed, negative error code otherwise.
    149148 *
    150149 */
     
    161160 * @param clear_bit  Bit to be cleared.
    162161 *
    163  * @return EOK if succeed, error code otherwise.
     162 * @return EOK if succeed, negative error code otherwise.
    164163 *
    165164 */
     
    176175 * @param elements   Number of elements in array.
    177176 *
    178  * @return EOK if succeed, error code otherwise.
     177 * @return EOK if succeed, negative error code otherwise.
    179178 *
    180179 */
     
    220219 * @param response_buffer Buffer with response data.
    221220 *
    222  * @return EOK if succeed, error code otherwise.
     221 * @return EOK if succeed, negative error code otherwise.
    223222 *
    224223 */
     
    246245        if (rc != EOK) {
    247246                free(buffer);
    248                 usb_log_error("Failed to send WMI message. Error: %s\n", str_error_name(rc));
     247                usb_log_error("Failed to send WMI message. Error: %d\n", rc);
    249248                return rc;
    250249        }
     
    269268                        free(buffer);
    270269                        usb_log_error("Failed to receive WMI message response. "
    271                             "Error: %s\n", str_error_name(rc));
     270                            "Error: %d\n", rc);
    272271                        return rc;
    273272                }
Note: See TracChangeset for help on using the changeset viewer.