FreeBSD/tools/tools/cxgbetool/cxgbetool.c
/*
 * Display TCB as list of 'n' 4-byte values per line.
 */
Display TCB as list of 'n' 4-byte values per line.
Display TCB as list of ' n ' 4 - byte values per line .
static void
show_tcb(uint32_t *buf, uint32_t len)
{
	const char *s;
	int i, n = 8;
	while (len) {
		for (i = 0; len && i < n; i++, buf++, len -= 4) {
			s = i ? " " : "";
			printf("%s%08x", s, htonl(*buf));
		}
		printf("\n");
	}
}
static void show_tcb ( uint32_t * buf , uint32_t len ) { const char * s ; int i , n = 8 ; while ( len ) { for ( i = 0 ; len && i < n ; i ++ , buf ++ , len -= 4 ) { s = i ? " " : " " ; printf ( " " , s , htonl ( * buf ) ) ; } printf ( " \n " ) ; } }
Display TCB as list of 'n' 4-byte values per line.
Display TCB as list of ' n ' 4 - byte values per line .