Changeset 2480e19 in mainline for uspace/srv/devman/devman.c


Ignore:
Timestamp:
2010-04-08T14:04:48Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1fc8f0
Parents:
89ce401a
Message:

fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/devman.c

    r89ce401a r2480e19  
    341341driver_t * find_best_match_driver(driver_list_t *drivers_list, node_t *node)
    342342{
    343         printf(NAME ": find_best_match_driver for device '%s' \n", node->pathname);
     343        //printf(NAME ": find_best_match_driver for device '%s' \n", node->pathname);
    344344        driver_t *best_drv = NULL, *drv = NULL;
    345345        int best_score = 0, score = 0;
     
    371371void attach_driver(node_t *node, driver_t *drv)
    372372{
     373        printf(NAME ": attach_driver %s to device %s\n", drv->name, node->pathname);
     374       
    373375        fibril_mutex_lock(&drv->driver_mutex);
    374376       
     
    524526bool assign_driver(node_t *node, driver_list_t *drivers_list)
    525527{
    526         printf(NAME ": assign_driver\n");
     528        //printf(NAME ": assign_driver\n");
    527529       
    528530        // find the driver which is the most suitable for handling this device
     
    620622bool insert_dev_node(dev_tree_t *tree, node_t *node, char *dev_name, node_t *parent)
    621623{
    622         printf(NAME ": insert_dev_node\n");
     624        // printf(NAME ": insert_dev_node\n");
    623625       
    624626        assert(NULL != node && NULL != tree && NULL != dev_name);
     
    709711                        return dev;                     
    710712                }
     713               
     714                link = link->next;
    711715        }       
    712716       
Note: See TracChangeset for help on using the changeset viewer.