aboutsummaryrefslogtreecommitdiff
path: root/tests/checkfs/checkfs.c
diff options
context:
space:
mode:
authorElie De Brauwer <eliedebrauwer@gmail.com>2013-03-01 19:37:38 +0100
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-03-11 10:36:02 +0200
commit3ff90433ab22c001215d9a26c65de1b7f448dc79 (patch)
tree3e415b39434b2674e1351399a9c8592aa416c91a /tests/checkfs/checkfs.c
parent681d1d6c311ac918986e964f65097d556b2acd78 (diff)
integck.c: rework file_check_data to immediately dump the buffer containing the errors
See my problem description int the previous commit, the point is that integck in file_check_data reads a buffer, and then checks if the data is correct,  it will do a seek(0), and reread from the same fd. The point is that in the scenario I observed integck failed (due to a buffer mismatch) but the it saved (and what was in flash) was actually correct. So I modified this function to dump the buffers to stderr at the moment an error is found. Signed-off-by: Elie De Brauwer <eliedebrauwer@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'tests/checkfs/checkfs.c')
0 files changed, 0 insertions, 0 deletions