From ee574da534cdcd978d3c6ecde46a544ea209f5ed Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Fri, 9 Dec 2005 14:27:03 +0000 Subject: [PATCH] Really fix the relative timestamp bug. It was only incorrect for the ALQ case. It seems entries are in reverse order when read from the kernel memory but in the right order when read from a file (i.e. ALQ). Handle both cases. MFC after: 1 day --- usr.bin/ktrdump/ktrdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/ktrdump/ktrdump.c b/usr.bin/ktrdump/ktrdump.c index 083370cd3fbe..ef21c564ab2c 100644 --- a/usr.bin/ktrdump/ktrdump.c +++ b/usr.bin/ktrdump/ktrdump.c @@ -253,7 +253,8 @@ main(int ac, char **av) if (rflag) { if (tlast == -1) tlast = tnow; - fprintf(out, "%16ju ", tnow - tlast); + fprintf(out, "%16ju ", !iflag ? tlast - tnow : + tnow - tlast); tlast = tnow; } else fprintf(out, "%16ju ", tnow);