Changes in uspace/srv/devman/driver.c [6afc9d7:1c635d6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/driver.c
r6afc9d7 r1c635d6 36 36 #include <sys/stat.h> 37 37 #include <io/log.h> 38 #include <ipc/driver.h> 38 39 #include <loc.h> 39 40 #include <str_error.h> … … 142 143 /* Check whether the driver's binary exists. */ 143 144 struct stat s; 144 if (stat(drv->binary_path, &s) != 0) {145 if (stat(drv->binary_path, &s) == ENOENT) { /* FIXME!! */ 145 146 log_msg(LOG_DEFAULT, LVL_ERROR, "Driver not found at path `%s'.", 146 147 drv->binary_path); … … 572 573 573 574 if (rc != EOK) { 574 async_forget(req);575 } else {576 /* Wait for answer from the driver. */ 577 async_wait_for(req, &rc);578 }579 580 switch 575 /* TODO handle error */ 576 } 577 578 /* Wait for answer from the driver. */ 579 async_wait_for(req, &rc); 580 581 switch(rc) { 581 582 case EOK: 582 583 dev->state = DEVICE_USABLE; … … 591 592 592 593 dev->passed_to_driver = true; 594 595 return; 593 596 } 594 597
Note:
See TracChangeset
for help on using the changeset viewer.