[parted-devel] [PATCH] libparted: fix exception text when exceeding partition limits

Colin Watson cjwatson at ubuntu.com
Fri Apr 9 12:22:27 UTC 2010


* libparted/labels/pt-tools.c (ptt_partition_max_start_len): Use correct
maximum values in exception text.
---
 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;
   }
 
-- 
1.7.0



More information about the parted-devel mailing list