Changes in uspace/app/mkbd/main.c [f9a627a:2f09dee] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkbd/main.c
rf9a627a r2f09dee 71 71 usb_hid_free_report(*report); 72 72 *report = NULL; 73 printf("usb_hid_report_init() failed.\n");73 //printf("usb_hid_report_init() failed.\n"); 74 74 return rc; 75 75 } … … 82 82 usb_hid_free_report(*report); 83 83 *report = NULL; 84 printf("usbhid_dev_get_report_descriptor_length() failed.\n");84 //printf("usbhid_dev_get_report_descriptor_length() failed.\n"); 85 85 return rc; 86 86 } … … 89 89 usb_hid_free_report(*report); 90 90 *report = NULL; 91 printf("usbhid_dev_get_report_descriptor_length() returned 0.\n");91 //printf("usbhid_dev_get_report_descriptor_length() returned 0.\n"); 92 92 return EINVAL; // TODO: other error code? 93 93 } … … 108 108 *report = NULL; 109 109 free(desc); 110 printf("usbhid_dev_get_report_descriptor() failed.\n");110 //printf("usbhid_dev_get_report_descriptor() failed.\n"); 111 111 return rc; 112 112 } … … 116 116 *report = NULL; 117 117 free(desc); 118 printf("usbhid_dev_get_report_descriptor() returned wrong size:"119 " %zu, expected: %zu.\n", actual_size, report_desc_size);118 // printf("usbhid_dev_get_report_descriptor() returned wrong size:" 119 // " %zu, expected: %zu.\n", actual_size, report_desc_size); 120 120 return EINVAL; // TODO: other error code? 121 121 } … … 128 128 if (rc != EOK) { 129 129 free(desc); 130 printf("usb_hid_parse_report_descriptor() failed.\n");130 // printf("usb_hid_parse_report_descriptor() failed.\n"); 131 131 return rc; 132 132 } … … 213 213 214 214 char *devpath = argv[1]; 215 //const char *devpath = "/hw/pci0/00:06.0/ohci-rh/usb00_a2/HID1/hid"; 216 217 int rc; 215 218 216 219 devman_handle_t dev_handle = 0; 217 218 int rc = usb_resolve_device_handle(devpath, NULL, NULL, &dev_handle); 219 if (rc != EOK) { 220 printf("Device not found or not of USB kind: %s.\n", 220 rc = devman_device_get_handle(devpath, &dev_handle, 0); 221 if (rc != EOK) { 222 printf("Failed to get handle from devman: %s.\n", 221 223 str_error(rc)); 222 224 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.