Fwd: Questions with the in_cksumdata() function in sys/amd64/amd64/in_cksum.c

Tiwei Bie btw at mail.ustc.edu.cn
Mon Oct 20 06:15:15 UTC 2014


Minor fix to the test program, lol.

diff --git a/misc/test/prefetch/main.c b/misc/test/prefetch/main.c
index 8f72085..9d2577d 100644
--- a/misc/test/prefetch/main.c
+++ b/misc/test/prefetch/main.c
@@ -490,7 +490,7 @@ int main(void)
 	gettimeofday(&tv2, NULL);
 
 	timersub(&tv2, &tv1, &res);
-	printf("%ld.%6ld\n", res.tv_sec, res.tv_usec);
+	printf("%ld.%06ld\n", res.tv_sec, res.tv_usec);
 
 	return (0);
 }



More information about the freebsd-hackers mailing list