OSDN Git Service

mtd: mtd_oobtest: Show the verification error location and data
authorRoger Quadros <rogerq@ti.com>
Tue, 21 Oct 2014 13:53:27 +0000 (16:53 +0300)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 20 Nov 2014 07:25:06 +0000 (23:25 -0800)
commit5a66088bffd9a5251e96ca5d0d46456ab9196287
tree91bdd8b45c770fe3e3910d54357e09aff83f2cd2
parent096916610f415e07cfe71d71a391011c617be5ed
mtd: mtd_oobtest: Show the verification error location and data

Add a function memcmpshow() that compares the 2 data buffers
and shows the address:offset and data bytes on comparison failure.
This function  does not break at a comparison failure but runs the
check for the whole data buffer.

Use memcmpshow() instead of memcmp() for all the verification paths.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/tests/oobtest.c