Changeset ce794342 in mainline for uspace/drv/usbhid/main.c
- Timestamp:
- 2011-03-21T18:21:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 31b568e
- Parents:
- 434ef65 (diff), fbefd0e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/main.c
r434ef65 rce794342 39 39 #include <usb/debug.h> 40 40 #include <errno.h> 41 #include <str_error.h> 41 42 42 43 #include "kbddev.h" … … 64 65 65 66 if (rc != EOK) { 66 usb_log_info("Device is not a supported keyboard.\n"); 67 usb_log_error("Failed to add HID device.\n"); 68 return EREFUSED; 67 usb_log_warning("Device is not a supported keyboard.\n"); 68 usb_log_error("Failed to add HID device: %s.\n", 69 str_error(rc)); 70 return rc; 69 71 } 70 72 73 usb_log_info("Keyboard `%s' ready to use.\n", dev->name); 74 71 75 return EOK; 72 76 } … … 89 93 int main(int argc, char *argv[]) 90 94 { 91 usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME); 95 printf(NAME ": HelenOS USB HID driver.\n"); 96 97 usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME); 98 92 99 return ddf_driver_main(&kbd_driver); 93 100 }
Note:
See TracChangeset
for help on using the changeset viewer.