提交 cfc646fa 编写于 作者: D Dominik Hackl 提交者: Linus Torvalds

[PATCH] crc32.c typo fix

This patch fixes a typo in lib/crc32.c which results in incorrect debug
output.
Signed-off-by: NDominik Hackl <dominik@hackl.dhs.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4b0271eb
...@@ -473,7 +473,7 @@ static u32 test_step(u32 init, unsigned char *buf, size_t len) ...@@ -473,7 +473,7 @@ static u32 test_step(u32 init, unsigned char *buf, size_t len)
init = bitreverse(init); init = bitreverse(init);
crc2 = bitreverse(crc1); crc2 = bitreverse(crc1);
if (crc1 != bitreverse(crc2)) 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, crc2, bitreverse(crc2));
crc1 = crc32_le(init, buf, len); crc1 = crc32_le(init, buf, len);
if (crc1 != crc2) if (crc1 != crc2)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册