Searched hist:263194 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/usr.bin/ktrdump/
H A Dktrdump.cdiff 263194 Fri Mar 14 19:50:09 MDT 2014 neel 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.

Completed in 49 milliseconds