Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154320515
D10443.id27591.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
786 B
Referenced Files
None
Subscribers
None
D10443.id27591.diff
View Options
Index: sys/kern/vfs_bio.c
===================================================================
--- sys/kern/vfs_bio.c
+++ sys/kern/vfs_bio.c
@@ -4924,12 +4924,14 @@
db_printf("\n");
}
#if defined(FULL_BUF_TRACKING)
- db_printf("b_io_tracking: b_io_tcnt = %u\n", bp->b_io_tcnt);
-
+ db_printf("b_io_tcnt = %u, b_io_tracking: ", bp->b_io_tcnt);
i = bp->b_io_tcnt % BUF_TRACKING_SIZE;
- for (j = 1; j <= BUF_TRACKING_SIZE; j++)
- db_printf(" %2u: %s\n", j,
- bp->b_io_tracking[BUF_TRACKING_ENTRY(i - j)]);
+ for (j = 1; j <= bp->b_io_tcnt; j++) {
+ db_printf("%s%s",
+ bp->b_io_tracking[BUF_TRACKING_ENTRY(i - j)],
+ j == bp->b_io_tcnt ? "" : ", ");
+ }
+ db_printf("\n");
#elif defined(BUF_TRACKING)
db_printf("b_io_tracking: %s\n", bp->b_io_tracking);
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 8:01 PM (1 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32302628
Default Alt Text
D10443.id27591.diff (786 B)
Attached To
Mode
D10443: Improve BUF_TRACKING.
Attached
Detach File
Event Timeline
Log In to Comment