Changeset b800b0e in mainline for uspace/srv/net/tcp/iqueue.c
- Timestamp:
- 2012-10-23T13:16:49Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ecf5b8
- Parents:
- 32b3a12 (diff), b2ac3998 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/iqueue.c
r32b3a12 rb800b0e 67 67 tcp_iqueue_entry_t *qe; 68 68 link_t *link; 69 log_msg(L VL_DEBUG, "tcp_iqueue_insert_seg()");69 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_iqueue_insert_seg()"); 70 70 71 71 iqe = calloc(1, sizeof(tcp_iqueue_entry_t)); 72 72 if (iqe == NULL) { 73 log_msg(L VL_ERROR, "Failed allocating IQE.");73 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating IQE."); 74 74 return; 75 75 } … … 108 108 link_t *link; 109 109 110 log_msg(L VL_DEBUG, "tcp_get_ready_seg()");110 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_get_ready_seg()"); 111 111 112 112 link = list_first(&iqueue->list); 113 113 if (link == NULL) { 114 log_msg(L VL_DEBUG, "iqueue is empty");114 log_msg(LOG_DEFAULT, LVL_DEBUG, "iqueue is empty"); 115 115 return ENOENT; 116 116 } … … 119 119 120 120 while (!seq_no_segment_acceptable(iqueue->conn, iqe->seg)) { 121 log_msg(L VL_DEBUG, "Skipping unacceptable segment (RCV.NXT=%"121 log_msg(LOG_DEFAULT, LVL_DEBUG, "Skipping unacceptable segment (RCV.NXT=%" 122 122 PRIu32 ", RCV.NXT+RCV.WND=%" PRIu32 ", SEG.SEQ=%" PRIu32 123 123 ", SEG.LEN=%" PRIu32 ")", iqueue->conn->rcv_nxt, … … 130 130 link = list_first(&iqueue->list); 131 131 if (link == NULL) { 132 log_msg(L VL_DEBUG, "iqueue is empty");132 log_msg(LOG_DEFAULT, LVL_DEBUG, "iqueue is empty"); 133 133 return ENOENT; 134 134 } … … 139 139 /* Do not return segments that are not ready for processing */ 140 140 if (!seq_no_segment_ready(iqueue->conn, iqe->seg)) { 141 log_msg(L VL_DEBUG, "Next segment not ready: SEG.SEQ=%u, "141 log_msg(LOG_DEFAULT, LVL_DEBUG, "Next segment not ready: SEG.SEQ=%u, " 142 142 "RCV.NXT=%u, SEG.LEN=%u", iqe->seg->seq, 143 143 iqueue->conn->rcv_nxt, iqe->seg->len); … … 145 145 } 146 146 147 log_msg(L VL_DEBUG, "Returning ready segment %p", iqe->seg);147 log_msg(LOG_DEFAULT, LVL_DEBUG, "Returning ready segment %p", iqe->seg); 148 148 list_remove(&iqe->link); 149 149 *seg = iqe->seg;
Note:
See TracChangeset
for help on using the changeset viewer.