Changes in uspace/lib/usbhid/src/hidreq.c [a1732929:4bfe063] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidreq.c
ra1732929 r4bfe063 62 62 { 63 63 if (ctrl_pipe == NULL) { 64 usb_log_warning("usbhid_req_set_report(): no pipe given. ");64 usb_log_warning("usbhid_req_set_report(): no pipe given.\n"); 65 65 return EINVAL; 66 66 } … … 82 82 value |= (type << 8); 83 83 84 usb_log_debug("Sending Set Report request to the device. ");84 usb_log_debug("Sending Set Report request to the device.\n"); 85 85 86 86 rc = usb_control_request_set(ctrl_pipe, … … 112 112 { 113 113 if (ctrl_pipe == NULL) { 114 usb_log_warning("usbhid_req_set_report(): no pipe given. ");114 usb_log_warning("usbhid_req_set_report(): no pipe given.\n"); 115 115 return EINVAL; 116 116 } … … 160 160 { 161 161 if (ctrl_pipe == NULL) { 162 usb_log_warning("usbhid_req_set_report(): no pipe given. ");162 usb_log_warning("usbhid_req_set_report(): no pipe given.\n"); 163 163 return EINVAL; 164 164 } … … 215 215 { 216 216 if (ctrl_pipe == NULL) { 217 usb_log_warning("usbhid_req_set_report(): no pipe given. ");217 usb_log_warning("usbhid_req_set_report(): no pipe given.\n"); 218 218 return EINVAL; 219 219 } … … 235 235 value |= (type << 8); 236 236 237 usb_log_debug("Sending Get Report request to the device. ");237 usb_log_debug("Sending Get Report request to the device.\n"); 238 238 239 239 rc = usb_control_request_get(ctrl_pipe, … … 266 266 { 267 267 if (ctrl_pipe == NULL) { 268 usb_log_warning("usbhid_req_set_report(): no pipe given. ");268 usb_log_warning("usbhid_req_set_report(): no pipe given.\n"); 269 269 return EINVAL; 270 270 } … … 300 300 301 301 if (actual_size != 1) { 302 usb_log_warning("Wrong data size: %zu, expected: 1. ",302 usb_log_warning("Wrong data size: %zu, expected: 1.\n", 303 303 actual_size); 304 304 return ELIMIT; … … 327 327 { 328 328 if (ctrl_pipe == NULL) { 329 usb_log_warning("usbhid_req_set_report(): no pipe given. ");329 usb_log_warning("usbhid_req_set_report(): no pipe given.\n"); 330 330 return EINVAL; 331 331 } … … 363 363 364 364 if (actual_size != 1) { 365 usb_log_warning("Wrong data size: %zu, expected: 1. ",365 usb_log_warning("Wrong data size: %zu, expected: 1.\n", 366 366 actual_size); 367 367 return ELIMIT;
Note:
See TracChangeset
for help on using the changeset viewer.