Changes in uspace/drv/nic/ar9271/wmi.c [fb1007ef:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/wmi.c
rfb1007ef rcde999a 35 35 #include <usb/debug.h> 36 36 #include <errno.h> 37 #include <malloc.h> 37 #include <str_error.h> 38 #include <stdlib.h> 38 39 #include <mem.h> 39 40 #include <byteorder.h> … … 46 47 * @param res Stored result. 47 48 * 48 * @return EOK if succeed, negativeerror code otherwise.49 * @return EOK if succeed, error code otherwise. 49 50 * 50 51 */ … … 78 79 * @param val Value to be written 79 80 * 80 * @return EOK if succeed, negativeerror code otherwise.81 * @return EOK if succeed, error code otherwise. 81 82 * 82 83 */ … … 111 112 * @param clear_bit Bit to be cleared. 112 113 * 113 * @return EOK if succeed, negativeerror code otherwise.114 * @return EOK if succeed, error code otherwise. 114 115 * 115 116 */ … … 145 146 * @param set_bit Bit to be set. 146 147 * 147 * @return EOK if succeed, negativeerror code otherwise.148 * @return EOK if succeed, error code otherwise. 148 149 * 149 150 */ … … 160 161 * @param clear_bit Bit to be cleared. 161 162 * 162 * @return EOK if succeed, negativeerror code otherwise.163 * @return EOK if succeed, error code otherwise. 163 164 * 164 165 */ … … 175 176 * @param elements Number of elements in array. 176 177 * 177 * @return EOK if succeed, negativeerror code otherwise.178 * @return EOK if succeed, error code otherwise. 178 179 * 179 180 */ … … 219 220 * @param response_buffer Buffer with response data. 220 221 * 221 * @return EOK if succeed, negativeerror code otherwise.222 * @return EOK if succeed, error code otherwise. 222 223 * 223 224 */ … … 245 246 if (rc != EOK) { 246 247 free(buffer); 247 usb_log_error("Failed to send WMI message. Error: % d\n", rc);248 usb_log_error("Failed to send WMI message. Error: %s\n", str_error_name(rc)); 248 249 return rc; 249 250 } … … 268 269 free(buffer); 269 270 usb_log_error("Failed to receive WMI message response. " 270 "Error: % d\n", rc);271 "Error: %s\n", str_error_name(rc)); 271 272 return rc; 272 273 }
Note:
See TracChangeset
for help on using the changeset viewer.