Changeset 2480e19 in mainline for uspace/srv/devman/main.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/main.c

    r89ce401a r2480e19  
    142142        }
    143143       
     144        ipc_answer_0(callid, EOK);
     145       
    144146        match_id->score = IPC_GET_ARG1(call);
    145147       
     
    147149        if (EOK != rc) {
    148150                delete_match_id(match_id);
     151                printf(NAME ": devman_receive_match_id - failed to receive match id string.\n");
    149152                return rc;
    150153        }
     
    157160
    158161static int devman_receive_match_ids(ipcarg_t match_count, match_id_list_t *match_ids)
    159 {
     162{       
    160163        int ret = EOK;
    161164        size_t i;
     
    170173static void devman_add_child(ipc_callid_t callid, ipc_call_t *call, driver_t *driver)
    171174{
    172         printf(NAME ": devman_add_child\n");
     175        // printf(NAME ": devman_add_child\n");
    173176       
    174177        device_handle_t parent_handle = IPC_GET_ARG1(*call);
     
    188191                return;
    189192        }
    190         printf(NAME ": newly added child device's name is '%s'.\n", dev_name);
     193        // printf(NAME ": newly added child device's name is '%s'.\n", dev_name);
    191194       
    192195        node_t *node = create_dev_node();
     
    196199                return;
    197200        }       
     201       
     202        printf(NAME ": devman_add_child %s\n", node->pathname);
    198203       
    199204        devman_receive_match_ids(match_count, &node->match_ids);
     
    261266       
    262267        device_handle_t handle = IPC_GET_ARG2(*icall);
    263         printf(NAME ": devman_forward - trying to forward connection to device with handle %x.\n", handle);
     268        // printf(NAME ": devman_forward - trying to forward connection to device with handle %x.\n", handle);
    264269       
    265270        node_t *dev = find_dev_node(&device_tree, handle);
     
    297302                return;
    298303        }
    299         printf(NAME ": devman_forward: forward to driver %s with phone %d.\n", driver->name, driver->phone);
     304        printf(NAME ": devman_forward: forward connection to device %s to driver %s with phone %d.\n",
     305                dev->pathname, driver->name, driver->phone);
    300306        ipc_forward_fast(iid, driver->phone, method, dev->handle, 0, IPC_FF_NONE);     
    301307}
Note: See TracChangeset for help on using the changeset viewer.