Changeset 4f64a523 in mainline for uspace/srv/ethip/ethip_nic.c
- Timestamp:
- 2012-02-12T19:36:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- df15e5f
- Parents:
- 1493811
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ethip/ethip_nic.c
r1493811 r4f64a523 158 158 } 159 159 160 rc = nic_set_state(nic->sess, NIC_STATE_ACTIVE);161 if (rc != EOK) {162 log_msg(LVL_ERROR, "Failed activating NIC '%s'.",163 nic->svc_name);164 goto error;165 }166 167 160 log_msg(LVL_DEBUG, "Opened NIC '%s'", nic->svc_name); 168 161 list_append(&nic->nic_list, ðip_nic_list); … … 172 165 if (rc != EOK) 173 166 goto error; 167 168 rc = nic_set_state(nic->sess, NIC_STATE_ACTIVE); 169 if (rc != EOK) { 170 log_msg(LVL_ERROR, "Failed activating NIC '%s'.", 171 nic->svc_name); 172 goto error; 173 } 174 174 175 175 log_msg(LVL_DEBUG, "Initialized IP link service."); … … 205 205 size_t size; 206 206 207 log_msg(LVL_DEBUG, "ethip_nic_received() ");207 log_msg(LVL_DEBUG, "ethip_nic_received() nic=%p", nic); 208 208 209 209 rc = async_data_write_accept(&data, false, 0, 0, 0, &size); … … 213 213 } 214 214 215 log_msg(LVL_DEBUG, "call ethip_received"); 215 216 rc = ethip_received(&nic->iplink, data, size); 217 log_msg(LVL_DEBUG, "free data"); 216 218 free(data); 217 219 … … 228 230 static void ethip_nic_cb_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg) 229 231 { 230 ethip_nic_t *nic ;232 ethip_nic_t *nic = (ethip_nic_t *)arg; 231 233 232 234 log_msg(LVL_DEBUG, "ethnip_nic_cb_conn()");
Note:
See TracChangeset
for help on using the changeset viewer.