Changeset 81c0854f in mainline for uspace/drv/usbhub/main.c
- Timestamp:
- 2011-01-28T12:41:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba5ab09
- Parents:
- c2020f7 (diff), ea6a824 (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/usbhub/main.c
rc2020f7 r81c0854f 25 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 /** @addtogroup drvusbhub 30 * @{ 27 31 */ 28 32 … … 60 64 int main(int argc, char *argv[]) 61 65 { 62 usb_dprintf_enable(NAME,1); 66 usb_dprintf_enable(NAME, 0); 67 63 68 futex_initialize(&usb_hub_list_lock, 0); 64 69 usb_lst_init(&usb_hub_list); 65 70 futex_up(&usb_hub_list_lock); 71 66 72 fid_t fid = fibril_create(usb_hub_control_loop, NULL); 67 73 if (fid == 0) { 68 dprintf(1, "failed to start fibril for HUB devices");69 //printf("%s: failed to start fibril for HUB devices\n", NAME);74 fprintf(stderr, NAME ": failed to start monitoring fibril," \ 75 " driver aborting.\n"); 70 76 return ENOMEM; 71 77 } … … 74 80 return driver_main(&hub_driver); 75 81 } 82 83 /** 84 * @} 85 */ 86
Note:
See TracChangeset
for help on using the changeset viewer.