From 1c710b5a981445e960dc96bfe730fb5ea0bc4d8c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 21 Apr 2011 08:26:42 +0300 Subject: fs-tests: integck: remove unneeded \n The 'errmsg()' macro adds "\n" at the end, so do not use it in our 'pcv()' and 'CHECK()' macros. Signed-off-by: Artem Bityutskiy --- tests/fs-tests/integrity/integck.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/fs-tests') diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index 8703355..b8a440b 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -58,9 +58,9 @@ if (!(cond)) { \ int _err = errno; \ fflush(stdout); \ - errmsg("condition '%s' failed at %s:%d\n", \ + errmsg("condition '%s' failed at %s:%d", \ stringify(cond), __FILE__, __LINE__); \ - errmsg("error %d (%s)\n", _err, strerror(_err)); \ + errmsg("error %d (%s)", _err, strerror(_err)); \ exit(EXIT_FAILURE); \ } \ } while(0) @@ -69,7 +69,7 @@ if (args.power_cut_mode) { \ int _err = errno; \ errmsg(fmt, ##__VA_ARGS__); \ - errmsg("error %d (%s) at %s:%d\n", \ + errmsg("error %d (%s) at %s:%d", \ _err, strerror(_err), __FILE__, __LINE__); \ } \ } while(0) -- cgit v1.2.3