summaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/src/ubinfo.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-09-02 17:41:47 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-09-02 17:41:47 +0300
commitc0d59ef392816ff9c0bd861d1cdb863a09fd6b1c (patch)
treed3eb46ea10303bd742228cc53b555d2a4a52b2e8 /ubi-utils/new-utils/src/ubinfo.c
parent214ddd398850d003dcd1943da6a039f324646b5b (diff)
ubi-utils: minor rename
We use term "volume ID", not "volume number". So change few vol_num variables to vol_id to be consistent. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/src/ubinfo.c')
-rw-r--r--ubi-utils/new-utils/src/ubinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ubi-utils/new-utils/src/ubinfo.c b/ubi-utils/new-utils/src/ubinfo.c
index aada8e7..536ec01 100644
--- a/ubi-utils/new-utils/src/ubinfo.c
+++ b/ubi-utils/new-utils/src/ubinfo.c
@@ -240,8 +240,8 @@ static int print_dev_info(libubi_t libubi, int dev_num, int all)
return 0;
printf("Present volumes: ");
- for (i = dev_info.lowest_vol_num;
- i <= dev_info.highest_vol_num; i++) {
+ for (i = dev_info.lowest_vol_id;
+ i <= dev_info.highest_vol_id; i++) {
err = ubi_get_vol_info1(libubi, dev_info.dev_num, i, &vol_info);
if (err == -1) {
if (errno == ENOENT)
@@ -266,8 +266,8 @@ static int print_dev_info(libubi_t libubi, int dev_num, int all)
first = 1;
printf("\n");
- for (i = dev_info.lowest_vol_num;
- i <= dev_info.highest_vol_num; i++) {
+ for (i = dev_info.lowest_vol_id;
+ i <= dev_info.highest_vol_id; i++) {
if(!first)
printf("-----------------------------------\n");
err = ubi_get_vol_info1(libubi, dev_info.dev_num, i, &vol_info);