]> www.infradead.org Git - mtd-utils.git/commit
mtd: tests: Fix endian issue with CRC generation algorithm
authorPaul McGougan <PMcGougan@topcon.com>
Thu, 17 Apr 2014 05:09:26 +0000 (05:09 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 29 Sep 2015 22:48:32 +0000 (15:48 -0700)
commit4a95eddcd1d599eb0d61677dab0e879e5ea51e78
tree15f2c1868586eb670efb585ac8525e5ab025cacd
parent5f50207231414bfdbac8f0f974a2824f24177d6e
mtd: tests: Fix endian issue with CRC generation algorithm

The calculation of the CRC in /tests/checkfs/makefiles.c was writing the CRC
Into the produced files in host byte-order which would cause CRC validation
to fail on big-endian systems as the validation is performed bytewise.

Signed-off-by: Paul McGougan <pmcgougan AT topcon.com>
[Brian: add endian.h]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
tests/checkfs/makefiles.c