- Timestamp:
- Jul 4, 2011 4:55:43 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/debug.c
r37742 r37744 335 335 AssertReturn(RTStrCmp(pszType, "tcpstate") == 0, 0); 336 336 cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "%s", pszTcpStateName); 337 return cb; 338 } 339 340 /* 341 * Prints sbuf state 342 */ 343 static DECLCALLBACK(size_t) 344 printSbuf(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, 345 const char *pszType, void const *pvValue, 346 int cchWidth, int cchPrecision, unsigned fFlags, 347 void *pvUser) 348 { 349 size_t cb = 0; 350 const struct sbuf *sb = (struct sbuf *)pvValue; 351 AssertReturn(RTStrCmp(pszType, "sbuf") == 0, 0); 352 cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "[sbuf:%p cc:%d, datalen:%d, wprt:%p, rptr:%p data:%p]", 353 sb, sb->sb_cc, sb->sb_datalen, sb->sb_wptr, sb->sb_rptr, sb->sb_data); 337 354 return cb; 338 355 } … … 407 424 rc = RTStrFormatTypeRegister("tcpstate", printTcpState, NULL); 408 425 AssertRC(rc); 426 rc = RTStrFormatTypeRegister("sbuf", printSbuf, NULL); 427 AssertRC(rc); 409 428 g_fFormatRegistered = 1; 410 429 }
Note:
See TracChangeset
for help on using the changeset viewer.