Changes in uspace/lib/usbhid/src/hidpath.c [a1732929:3ca4ae9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidpath.c
ra1732929 r3ca4ae9 36 36 #include <errno.h> 37 37 #include <stdio.h> 38 #include <malloc.h>39 38 #include <mem.h> 39 #include <stdlib.h> 40 40 #include <usb/debug.h> 41 41 #include <assert.h> … … 173 173 void usb_hid_print_usage_path(usb_hid_report_path_t *path) 174 174 { 175 usb_log_debug("USAGE_PATH FOR RId(%d): ", path->report_id);176 usb_log_debug("\tLENGTH: %d ", path->depth);175 usb_log_debug("USAGE_PATH FOR RId(%d):\n", path->report_id); 176 usb_log_debug("\tLENGTH: %d\n", path->depth); 177 177 178 178 list_foreach(path->items, rpath_items_link, 179 179 usb_hid_report_usage_path_t, path_item) { 180 180 181 usb_log_debug("\tUSAGE_PAGE: %X ", path_item->usage_page);182 usb_log_debug("\tUSAGE: %X ", path_item->usage);183 usb_log_debug("\tFLAGS: %d ", path_item->flags);181 usb_log_debug("\tUSAGE_PAGE: %X\n", path_item->usage_page); 182 usb_log_debug("\tUSAGE: %X\n", path_item->usage); 183 usb_log_debug("\tFLAGS: %d\n", path_item->flags); 184 184 } 185 185 } … … 191 191 * @param flags Flags determining the mode of comparison 192 192 * 193 * @return EOKif both paths are identical, non zero number otherwise193 * @return 0 if both paths are identical, non zero number otherwise 194 194 * 195 195 */ … … 213 213 // Empty path match all others 214 214 if (path->depth == 0) { 215 return EOK;215 return 0; 216 216 } 217 217 … … 239 239 if (USB_HID_SAME_USAGE(report_item->usage, 240 240 path_item->usage)) 241 return EOK;241 return 0; 242 242 } else { 243 return EOK;243 return 0; 244 244 } 245 245 } … … 285 285 ((report_link == &report_path->items.head) && 286 286 (path_link == &path->items.head))) { 287 return EOK;287 return 0; 288 288 } else { 289 289 return 1; … … 297 297 298 298 if (list_empty(&path->items)) { 299 return EOK;299 return 0; 300 300 } 301 301 … … 320 320 321 321 if (path_link == &path->items.head) { 322 return EOK;322 return 0; 323 323 } else { 324 324 return 1; … … 327 327 328 328 default: 329 return EINVAL;329 return -1; 330 330 } 331 331 }
Note:
See TracChangeset
for help on using the changeset viewer.