paycheck: Fix printing of operation index while tracing.
The block tracer is meant to scan operations in reverse order, to
discover the latest operation that writes to a block. Strangely, it only
reversed the operation indexes but scanned the actual operations in the
original order, which is both incorrect in the general case, but even
when it works the printed results are confusing (operations shown with
the wrong index). This fixes it.
Also some cosmetic changes to pacify the linter.
TEST=paycheck -B now prints the correct operation indexes.
Commit-Queue: Gilad Arnold <email@example.com>
Tested-by: Gilad Arnold <firstname.lastname@example.org>
Reviewed-by: Don Garrett <email@example.com>
1 file changed