freebsd-nq/usr.bin/ktrdump
Neel Natu f8c8b7ee8f Fix an issue with ktrdump(8) where it would not print all entries in the
KTR buffer.

This happens when 'i' tries to wrap around from 0 to 'entries - 1'. Since 'i'
is a signed integer the modulo operation actually returns a negative number.

Fix this by computing the next index to use "by hand" instead of relying
on the modulo operator.
2014-03-14 21:35:16 +00:00
..
ktrdump.8
ktrdump.c Fix an issue with ktrdump(8) where it would not print all entries in the 2014-03-14 21:35:16 +00:00
Makefile