]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: fix line number in CHECK() output
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 24 Apr 2011 07:11:03 +0000 (10:11 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 25 Apr 2011 17:04:30 +0000 (20:04 +0300)
commit4d857cc358ca0f19a859dfcd97e2cf834f8cfce1
tree337426e7b189d96227d367472d4e3ccfcfa2d400
parent54cb6ff01a7936d7a160a65f5b28f735c05ff3d4
fs-tests: integck: fix line number in CHECK() output

In 'check_failed()' use the file and line number provided by the CHECK()
macro via the function parameters, rather than using __LINE__ directly.
Otherwise the funtion prints its own line, instead of the line where the
CHECK() failed.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/integck.c