Changeset afcd86e in mainline for uspace/drv/uhci-hcd/root_hub.c
- Timestamp:
- 2011-02-01T22:19:15Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c56dbe0
- Parents:
- 7ce0fe3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/root_hub.c
r7ce0fe3 rafcd86e 2 2 #include <errno.h> 3 3 #include <stdio.h> 4 4 5 #include <usb_iface.h> 5 6 6 #include "debug.h" 7 #include <usb/debug.h> 8 7 9 #include "root_hub.h" 8 10 /*----------------------------------------------------------------------------*/ … … 27 29 } 28 30 /*----------------------------------------------------------------------------*/ 29 30 31 static usb_iface_t usb_iface = { 31 32 .get_hc_handle = usb_iface_get_hc_handle … … 41 42 device_t *hub = create_device(); 42 43 if (!hub) { 43 u hci_print_error("Failed to create root hub device structure.\n");44 usb_log_error("Failed to create root hub device structure.\n"); 44 45 return ENOMEM; 45 46 } … … 47 48 int ret = asprintf(&name, "UHCI Root Hub"); 48 49 if (ret < 0) { 49 u hci_print_error("Failed to create root hub name.\n");50 usb_log_error("Failed to create root hub name.\n"); 50 51 free(hub); 51 52 return ENOMEM; … … 55 56 ret = asprintf(&match_str, "usb&uhci&root-hub"); 56 57 if (ret < 0) { 57 u hci_print_error("Failed to create root hub match string.\n");58 usb_log_error("Failed to create root hub match string.\n"); 58 59 free(hub); 59 60 free(name); … … 63 64 match_id_t *match_id = create_match_id(); 64 65 if (!match_id) { 65 u hci_print_error("Failed to create root hub match id.\n");66 usb_log_error("Failed to create root hub match id.\n"); 66 67 free(hub); 67 68 free(match_str);
Note:
See TracChangeset
for help on using the changeset viewer.