Changeset 37745 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 4, 2011 5:10:47 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/socket.c
r37743 r37745 153 153 154 154 LogFlow(("soread: so = %R[natsock]\n", so)); 155 Log2(("%s: so = %R[natsock] so->so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, so, sb)); 155 156 156 157 /* … … 220 221 #endif 221 222 Log2(("%s: read(1) nn = %d bytes\n", __PRETTY_FUNCTION__, nn)); 223 Log2(("%s: so = %R[natsock] so->so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, so, sb)); 222 224 if (nn <= 0) 223 225 { … … 305 307 sb->sb_cc += nn; 306 308 sb->sb_wptr += nn; 309 Log2(("%s: update so_snd (readed nn = %d) %R[sbuf]\n", __PRETTY_FUNCTION__, nn, so, sb)); 307 310 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) 311 { 308 312 sb->sb_wptr -= sb->sb_datalen; 313 Log2(("%s: alter sb_wptr so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, nn, so, sb)); 314 } 309 315 STAM_PROFILE_STOP(&pData->StatIOread, a); 310 316 SOCKET_UNLOCK(so); … … 506 512 STAM_COUNTER_RESET(&pData->StatIOWrite_rest); 507 513 STAM_COUNTER_RESET(&pData->StatIOWrite_rest_bytes); 508 LogFlow(("sowrite: so = %lx\n", (long)so)); 514 LogFlowFunc(("so = %R[natsock]\n", so)); 515 Log2(("%s: so = %R[natsock] so->so_rcv = %R[sbuf]\n", __PRETTY_FUNCTION__, so, sb)); 509 516 QSOCKET_LOCK(tcb); 510 517 SOCKET_LOCK(so); … … 619 626 sb->sb_cc -= nn; 620 627 sb->sb_rptr += nn; 628 Log2(("%s: update so_rcv (written nn = %d) %R[sbuf]\n", __PRETTY_FUNCTION__, sb, nn)); 621 629 if (sb->sb_rptr >= (sb->sb_data + sb->sb_datalen)) 630 { 622 631 sb->sb_rptr -= sb->sb_datalen; 632 Log2(("%s: alter sb_rptr of so_rcv %R[sbuf]\n", __PRETTY_FUNCTION__, sb)); 633 } 623 634 624 635 /*
Note:
See TracChangeset
for help on using the changeset viewer.