summaryrefslogtreecommitdiff
path: root/ubi-utils/src/ubimkvol.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-22 18:02:43 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-22 18:02:43 +0200
commit9b5008d4874eecf802e9cb292bba79c7c462e816 (patch)
treebea969b5d3dcd833287bcebb7c4d69679767223a /ubi-utils/src/ubimkvol.c
parent30fda17fbb469aab410dce57a2c16f5e48d380a4 (diff)
ubi-utils: some renames
Since there is often confusion what "eb" is - physical or logical eraseblock. Fix libubi and change "eb" to "leb". Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/ubimkvol.c')
-rw-r--r--ubi-utils/src/ubimkvol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ubi-utils/src/ubimkvol.c b/ubi-utils/src/ubimkvol.c
index c2868e2..4173e78 100644
--- a/ubi-utils/src/ubimkvol.c
+++ b/ubi-utils/src/ubimkvol.c
@@ -291,8 +291,8 @@ int main(int argc, char * const argv[])
}
if (myargs.lebs != -1) {
- myargs.bytes = dev_info.eb_size;
- myargs.bytes -= dev_info.eb_size % myargs.alignment;
+ myargs.bytes = dev_info.leb_size;
+ myargs.bytes -= dev_info.leb_size % myargs.alignment;
myargs.bytes *= myargs.lebs;
}
@@ -319,10 +319,10 @@ int main(int argc, char * const argv[])
goto out_libubi;
}
- printf("Volume ID %d, size %d LEBs (", vol_info.vol_id, vol_info.rsvd_ebs);
+ printf("Volume ID %d, size %d LEBs (", vol_info.vol_id, vol_info.rsvd_lebs);
ubiutils_print_bytes(vol_info.rsvd_bytes, 0);
printf("), LEB size ");
- ubiutils_print_bytes(vol_info.eb_size, 1);
+ ubiutils_print_bytes(vol_info.leb_size, 1);
printf(", %s volume, name \"%s\", alignment %d\n",
req.vol_type == UBI_DYNAMIC_VOLUME ? "dynamic" : "static",
vol_info.name, vol_info.alignment);