From 6bbe5558adeead2970b5090782466e87f8801f53 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 14 Jun 2010 10:03:34 +0300 Subject: ubi-tests: rename err_msg to errmsg For consistency with ubi-utils. Signed-off-by: Artem Bityutskiy --- tests/ubi-tests/volrefcnt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/ubi-tests/volrefcnt.c') diff --git a/tests/ubi-tests/volrefcnt.c b/tests/ubi-tests/volrefcnt.c index a56deae..9b5a53c 100644 --- a/tests/ubi-tests/volrefcnt.c +++ b/tests/ubi-tests/volrefcnt.c @@ -76,7 +76,7 @@ int main(int argc, char * const argv[]) sprintf(fname, SYSFS_FILE, dev_info.dev_num, req.vol_id); fd = open(fname, O_RDONLY); if (fd == -1) { - err_msg("cannot open %s", fname); + errmsg("cannot open %s", fname); failed("open"); goto out_rmvol; } @@ -91,7 +91,7 @@ int main(int argc, char * const argv[]) /* Try to read from the file, this should fail */ ret = read(fd, tmp, 100); if (ret != -1) { - err_msg("read returned %d, expected -1", ret); + errmsg("read returned %d, expected -1", ret); failed("read"); goto out_close; } @@ -100,8 +100,8 @@ int main(int argc, char * const argv[]) close(fd); fd = open(fname, O_RDONLY); if (fd != -1) { - err_msg("opened %s again, open returned %d, expected -1", - fname, fd); + errmsg("opened %s again, open returned %d, expected -1", + fname, fd); failed("open"); goto out_libubi; } -- cgit v1.2.3