From: Roger Quadros Date: Wed, 8 Jul 2015 11:50:19 +0000 (+0300) Subject: mtd: mtd_oobtest: Fix the address offset with vary_offset case X-Git-Tag: omap-for-v4.3/fixes-rc1~116^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=718e38b4d96085b4dab08d3d32e5e033aa1ba6e9;p=pandora-kernel.git mtd: mtd_oobtest: Fix the address offset with vary_offset case When vary_offset is set (e.g. test case 3), the offset is not always zero so memcmpshow() will show the wrong offset in the print message. To fix this we introduce a new function memcmpshowoffset() which takes offset as a parameter and displays the right offset and use it in the case where offset is non zero. The old memcmpshow() functionality is preserved by converting it into a macro with offset preset to 0. Signed-off-by: Roger Quadros Signed-off-by: Brian Norris --- Reading git-diff-tree failed