MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / tivaif_trace_pbuf

Function tivaif_trace_pbuf

bsp/tm4c129x/drivers/drv_eth.c:454–475  ·  view source on GitHub ↗

* Dump the chain of pbuf pointers to the debug output. */

Source from the content-addressed store, hash-verified

452 * Dump the chain of pbuf pointers to the debug output.
453 */
454void
455tivaif_trace_pbuf(const char *pcTitle, struct pbuf *p)
456{
457 LWIP_DEBUGF(NETIF_DEBUG, ("%s %08x (%d, %d)", pcTitle, p, p->tot_len,
458 p->len));
459
460 do
461 {
462 p = p->next;
463 if(p)
464 {
465 LWIP_DEBUGF(NETIF_DEBUG, ("->%08x(%d)", p, p->len));
466 }
467 else
468 {
469 LWIP_DEBUGF(NETIF_DEBUG, ("->%08x", p));
470 }
471
472 } while((p != NULL) && (p->tot_len != p->len));
473
474 LWIP_DEBUGF(NETIF_DEBUG, ("\n"));
475}
476#endif
477
478/**

Callers 1

tivaif_check_pbufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected