projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb29be
)
lib/crc32test: correct printed bytes count
author
Kevin Bracey
<kevin@bracey.fi>
Tue, 18 Jan 2022 10:23:50 +0000
(12:23 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 31 Jan 2022 00:21:43 +0000
(11:21 +1100)
crc32c_le self test had a stray multiply by two inherited from
the crc32_le+crc32_be test loop.
Signed-off-by: Kevin Bracey <kevin@bracey.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/crc32test.c
patch
|
blob
|
history
diff --git
a/lib/crc32test.c
b/lib/crc32test.c
index
61ddce2
..
9b4af79
100644
(file)
--- a/
lib/crc32test.c
+++ b/
lib/crc32test.c
@@
-675,7
+675,7
@@
static int __init crc32c_test(void)
/* pre-warm the cache */
for (i = 0; i < 100; i++) {
- bytes +=
2*
test[i].length;
+ bytes += test[i].length;
crc ^= __crc32c_le(test[i].crc, test_buf +
test[i].start, test[i].length);