Changeset a1a101d in mainline for uspace/srv/net/tcp/ncsim.c
- Timestamp:
- 2012-08-17T16:58:51Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc0ccab
- Parents:
- 920d0fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/ncsim.c
r920d0fc ra1a101d 74 74 link_t *link; 75 75 76 log_msg(L VL_DEBUG, "tcp_ncsim_bounce_seg()");76 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_bounce_seg()"); 77 77 tcp_rqueue_bounce_seg(sp, seg); 78 78 return; … … 80 80 if (0 /*random() % 4 == 3*/) { 81 81 /* Drop segment */ 82 log_msg(L VL_ERROR, "NCSim dropping segment");82 log_msg(LOG_DEFAULT, LVL_ERROR, "NCSim dropping segment"); 83 83 tcp_segment_delete(seg); 84 84 return; … … 87 87 sqe = calloc(1, sizeof(tcp_squeue_entry_t)); 88 88 if (sqe == NULL) { 89 log_msg(L VL_ERROR, "Failed allocating SQE.");89 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating SQE."); 90 90 return; 91 91 } … … 126 126 int rc; 127 127 128 log_msg(L VL_DEBUG, "tcp_ncsim_fibril()");128 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_fibril()"); 129 129 130 130 … … 139 139 sqe = list_get_instance(link, tcp_squeue_entry_t, link); 140 140 141 log_msg(L VL_DEBUG, "NCSim - Sleep");141 log_msg(LOG_DEFAULT, LVL_DEBUG, "NCSim - Sleep"); 142 142 rc = fibril_condvar_wait_timeout(&sim_queue_cv, 143 143 &sim_queue_lock, sqe->delay); … … 147 147 fibril_mutex_unlock(&sim_queue_lock); 148 148 149 log_msg(L VL_DEBUG, "NCSim - End Sleep");149 log_msg(LOG_DEFAULT, LVL_DEBUG, "NCSim - End Sleep"); 150 150 tcp_rqueue_bounce_seg(&sqe->sp, sqe->seg); 151 151 free(sqe); … … 161 161 fid_t fid; 162 162 163 log_msg(L VL_DEBUG, "tcp_ncsim_fibril_start()");163 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_fibril_start()"); 164 164 165 165 fid = fibril_create(tcp_ncsim_fibril, NULL); 166 166 if (fid == 0) { 167 log_msg(L VL_ERROR, "Failed creating ncsim fibril.");167 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed creating ncsim fibril."); 168 168 return; 169 169 }
Note:
See TracChangeset
for help on using the changeset viewer.