]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: cleanup wipe warning
authorKarel Zak <kzak@redhat.com>
Wed, 4 Sep 2019 12:51:02 +0000 (14:51 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Sep 2019 12:54:54 +0000 (14:54 +0200)
Let's remove 'old' from the sentence, add man page reference to
sfdisk.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk.c
disk-utils/sfdisk.c

index b86448061c1b2d46ab52608459e0383ad9173014..81334d06c6f6243b4ff7069f287d2f7ac9b19dd0 100644 (file)
@@ -797,12 +797,12 @@ void follow_wipe_mode(struct fdisk_context *cxt)
        fdisk_enable_wipe(cxt, dowipe);
        if (dowipe)
                fdisk_warnx(cxt, _(
-                       "The old %s signature will be removed by a write command. "
+                       "The device contains '%s' signature and it will be removed by a write command. "
                        "See fdisk(8) man page and --wipe option for more details."),
                        fdisk_get_collision(cxt));
        else
                fdisk_warnx(cxt, _(
-                       "The old %s signature may remain on the device. "
+                       "The device contains '%s' signature and it may remain on the device. "
                        "It is recommended to wipe the device with wipefs(8) or "
                        "fdisk --wipe, in order to avoid possible collisions."),
                        fdisk_get_collision(cxt));
index 37d652b2f9059c176702f1ee5629401e1d72be68..7032929134976f4b64b316942e5f34531543dd3b 100644 (file)
@@ -1476,13 +1476,15 @@ static void follow_wipe_mode(struct sfdisk *sf)
 
        if (dowipe) {
                if (!fdisk_is_ptcollision(sf->cxt)) {
-                       fdisk_info(sf->cxt, _("The old %s signature will be removed by a write command."),
-                                       fdisk_get_collision(sf->cxt));
+                       fdisk_warn(sf->cxt, _(
+                               "The device contains '%s' signature and it will be removed by a write command. "
+                               "See sfdisk(8) man page and --wipe option for more details."),
+                               fdisk_get_collision(sf->cxt));
                        fputc('\n', stdout);
                }
        } else {
                fdisk_warnx(sf->cxt, _(
-                       "The old %s signature may remain on the device. "
+                       "The device contains '%s' signature and it may remain on the device. "
                        "It is recommended to wipe the device with wipefs(8) or "
                        "sfdisk --wipe, in order to avoid possible collisions."),
                        fdisk_get_collision(sf->cxt));