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/rsvol.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/rsvol.c')
-rw-r--r-- | tests/ubi-tests/rsvol.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ubi-tests/rsvol.c b/tests/ubi-tests/rsvol.c index 8ec93bc..917d6ba 100644 --- a/tests/ubi-tests/rsvol.c +++ b/tests/ubi-tests/rsvol.c @@ -123,14 +123,14 @@ static int test_rsvol1(struct ubi_vol_info *vol_info) } if (vol_info1.rsvd_bytes != bytes) { - err_msg("rsvd_bytes %lld, must be %lld", - vol_info1.rsvd_bytes, bytes); + errmsg("rsvd_bytes %lld, must be %lld", + vol_info1.rsvd_bytes, bytes); return -1; } if (vol_info1.rsvd_lebs != vol_info->rsvd_lebs - 1) { - err_msg("rsvd_lebs %d, must be %d", - vol_info1.rsvd_lebs, vol_info->rsvd_lebs - 1); + errmsg("rsvd_lebs %d, must be %d", + vol_info1.rsvd_lebs, vol_info->rsvd_lebs - 1); return -1; } @@ -141,7 +141,7 @@ static int test_rsvol1(struct ubi_vol_info *vol_info) fd = open(vol_node, O_RDWR); if (fd == -1) { failed("open"); - err_msg("cannot open \"%s\"\n", vol_node); + errmsg("cannot open \"%s\"\n", vol_node); return -1; } @@ -176,7 +176,7 @@ static int test_rsvol1(struct ubi_vol_info *vol_info) fd = open(vol_node, O_RDWR); if (fd == -1) { failed("open"); - err_msg("cannot open \"%s\"\n", vol_node); + errmsg("cannot open \"%s\"\n", vol_node); return -1; } @@ -194,7 +194,7 @@ static int test_rsvol1(struct ubi_vol_info *vol_info) for (i = 0; i < bytes; i++) { if (buf[i] != (unsigned char)i) { - err_msg("bad data"); + errmsg("bad data"); goto close; } } @@ -252,7 +252,7 @@ static int test_rsvol(int type) } if (test_rsvol1(&vol_info)) { - err_msg("alignment = %d", req.alignment); + errmsg("alignment = %d", req.alignment); goto remove; } |