1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

Improve BUF_TRACKING by not displaying NULL entries.

Reviewed by:	cem
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D10443
This commit is contained in:
Edward Tomasz Napierala 2017-04-23 17:39:31 +00:00
parent 48c4767756
commit 10be945708
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317341

View File

@ -4927,9 +4927,12 @@ DB_SHOW_COMMAND(buffer, db_show_buffer)
db_printf("b_io_tracking: b_io_tcnt = %u\n", bp->b_io_tcnt);
i = bp->b_io_tcnt % BUF_TRACKING_SIZE;
for (j = 1; j <= BUF_TRACKING_SIZE; j++)
for (j = 1; j <= BUF_TRACKING_SIZE; j++) {
if (bp->b_io_tracking[BUF_TRACKING_ENTRY(i - j)] == NULL)
continue;
db_printf(" %2u: %s\n", j,
bp->b_io_tracking[BUF_TRACKING_ENTRY(i - j)]);
}
#elif defined(BUF_TRACKING)
db_printf("b_io_tracking: %s\n", bp->b_io_tracking);
#endif