projects/linux·commit cfc646fa

[PATCH] crc32.c typo fix

cfc646fa · Dominik Hackl <[email protected]> · 2005-08-07 09:42:53 -07:00

This patch fixes a typo in lib/crc32.c which results in incorrect debug
output.

Signed-off-by: Dominik Hackl <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
cfc646fa848dfa124fe4d6e0e44ef6940f7f9e6d
Parents
4b0271eb

Changes

1 files changed · +1 −1

FileStatusAddDelContent
lib/crc32.cmodified+1−1View file

lib/crc32.c

View file
diff --git a/lib/crc32.c b/lib/crc32.c
index 58b2227..065198f 100644
--- a/lib/crc32.c
+++ b/lib/crc32.c
@@ -473,7 +473,7 @@ static u32 test_step(u32 init, unsigned char *buf, size_t len)
init = bitreverse(init);
crc2 = bitreverse(crc1);
if (crc1 != bitreverse(crc2))
- printf("\nBit reversal fail: 0x%08x -> %0x08x -> 0x%08x\n",
+ printf("\nBit reversal fail: 0x%08x -> 0x%08x -> 0x%08x\n",
crc1, crc2, bitreverse(crc2));
crc1 = crc32_le(init, buf, len);
if (crc1 != crc2)