Skip to content

Commit

Permalink
[PATCH] crc32.c typo fix
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Dominik Hackl authored and Linus Torvalds committed Aug 7, 2005
1 parent 4b0271e commit cfc646f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cfc646f

Please sign in to comment.