Changeset d347b53 in mainline for uspace/srv/devman/devman.c
- Timestamp:
- 2010-03-21T19:33:58Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 66babbd
- Parents:
- bda60d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
rbda60d9 rd347b53 233 233 } 234 234 235 printf(NAME ": get_driver_info - path to match id list = %s.\n", match_path);236 237 235 if (!read_match_ids(match_path, &drv->match_ids)) { 238 236 goto cleanup; … … 284 282 int lookup_available_drivers(driver_list_t *drivers_list, const char *dir_path) 285 283 { 286 printf(NAME ": lookup_available_drivers \n");284 printf(NAME ": lookup_available_drivers, dir = %s \n", dir_path); 287 285 288 286 int drv_cnt = 0; … … 291 289 292 290 dir = opendir(dir_path); 293 printf(NAME ": lookup_available_drivers has opened directory %s for driver search.\n", dir_path);294 291 295 292 if (dir != NULL) { 296 293 driver_t *drv = create_driver(); 297 printf(NAME ": lookup_available_drivers has created driver structure.\n");298 294 while ((diren = readdir(dir))) { 299 295 if (get_driver_info(dir_path, diren->d_name, drv)) { … … 345 341 driver_t * find_best_match_driver(driver_list_t *drivers_list, node_t *node) 346 342 { 347 printf(NAME ": find_best_match_driver \n");343 printf(NAME ": find_best_match_driver for device '%s' \n", node->pathname); 348 344 driver_t *best_drv = NULL, *drv = NULL; 349 345 int best_score = 0, score = 0; … … 392 388 bool start_driver(driver_t *drv) 393 389 { 394 printf(NAME ": start_driver \n");390 printf(NAME ": start_driver '%s'\n", drv->name); 395 391 396 392 char *argv[2]; 397 398 printf(NAME ": spawning driver %s\n", drv->name);399 393 400 394 argv[0] = drv->name; … … 459 453 static void pass_devices_to_driver(driver_t *driver) 460 454 { 455 printf(NAME ": pass_devices_to_driver\n"); 461 456 node_t *dev; 462 457 link_t *link; … … 486 481 void initialize_running_driver(driver_t *driver) 487 482 { 483 printf(NAME ": initialize_running_driver\n"); 488 484 fibril_mutex_lock(&driver->driver_mutex); 489 485 … … 533 529 driver_t *drv = find_best_match_driver(drivers_list, node); 534 530 if (NULL == drv) { 535 printf(NAME ": no driver found for device .\n");531 printf(NAME ": no driver found for device '%s'.\n", node->pathname); 536 532 return false; 537 533 } … … 626 622 printf(NAME ": insert_dev_node\n"); 627 623 628 assert(NULL != node && NULL != tree && dev_name != NULL);624 assert(NULL != node && NULL != tree && NULL != dev_name); 629 625 630 626 node->name = dev_name;
Note:
See TracChangeset
for help on using the changeset viewer.