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>
fflush(stdout);
errmsg("condition '%s' failed in %s() at %s:%d",
- cond, func, __FILE__, __LINE__);
+ cond, func, file, line);
normsg("error %d (%s)", error, strerror(error));
/*
* Note, to make this work well you need: