]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (gpt) reword two error messages with a sense of direction
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 16 Mar 2016 08:55:51 +0000 (09:55 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Mar 2016 09:39:37 +0000 (10:39 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
libfdisk/src/gpt.c

index 2b2f519124be693bd8e98329fdac7da47f3a326e..39c93bb9e7bf5e397307d18138d19e45227f7a00 100644 (file)
@@ -1745,14 +1745,14 @@ static int gpt_set_partition(struct fdisk_context *cxt, size_t n,
 
        if (!FDISK_IS_UNDEF(start)) {
                if (start < le64_to_cpu(gpt->pheader->first_usable_lba)) {
-                       fdisk_warnx(cxt, _("The begin of the partition overflows FirstUsableLBA."));
+                       fdisk_warnx(cxt, _("The start of the partition understeps FirstUsableLBA."));
                        return -EINVAL;
                }
                e->lba_start = cpu_to_le64(start);
        }
        if (!FDISK_IS_UNDEF(end)) {
                if (end > le64_to_cpu(gpt->pheader->last_usable_lba)) {
-                       fdisk_warnx(cxt, _("The end of the partition overflows LastUsableLBA."));
+                       fdisk_warnx(cxt, _("The end of the partition oversteps LastUsableLBA."));
                        return -EINVAL;
                }
                e->lba_end = cpu_to_le64(end);