diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-06-14 10:03:34 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-06-14 10:03:34 +0300 |
commit | 6bbe5558adeead2970b5090782466e87f8801f53 (patch) | |
tree | 59a6a55974eaf6bda83472255a9e5994544cec27 /tests/ubi-tests/volrefcnt.c | |
parent | c7298da85e0e249ba237dcf158ec3e158e54fd40 (diff) |
ubi-tests: rename err_msg to errmsg
For consistency with ubi-utils.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/ubi-tests/volrefcnt.c')
-rw-r--r-- | tests/ubi-tests/volrefcnt.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |