diff options
author | Colin Watson <cjwatson@ubuntu.com> | 2010-04-09 13:22:27 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-09 17:29:54 +0200 |
commit | 0fb5838f39c2c16ec72775e00702689f4b84f5c1 (patch) | |
tree | 6337ea2d87d7353c15bbfbd3e26f5462274d2bdb /libparted/labels/pt-tools.c | |
parent | 85506df997edba889cf8b475df3b854f4887e9bb (diff) | |
download | parted-0fb5838f39c2c16ec72775e00702689f4b84f5c1.tar.gz |
libparted: fix diagnostics about exceeding partition limits
* libparted/labels/pt-tools.c (ptt_partition_max_start_len): Use the
correct value in the diagnostics that print the upper bound on
partition size and largest starting sector number. Before, each
would use UINT32_MAX. Now each prints the partition-table-specific
limit.
Diffstat (limited to 'libparted/labels/pt-tools.c')
-rw-r--r-- | libparted/labels/pt-tools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libparted/labels/pt-tools.c b/libparted/labels/pt-tools.c index 9992529..ff3186d 100644 --- a/libparted/labels/pt-tools.c +++ b/libparted/labels/pt-tools.c @@ -127,7 +127,7 @@ ptt_partition_max_start_len (char const *pt_type, const PedPartition *part) " of %jd"), part->geom.length, pt_type, - UINT32_MAX); + pt_lim->max_length); return 0; } @@ -140,7 +140,7 @@ ptt_partition_max_start_len (char const *pt_type, const PedPartition *part) " of %jd"), part->geom.start, pt_type, - UINT32_MAX); + pt_lim->max_start_sector); return 0; } |