]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: update sfdisk wipe output
authorKarel Zak <kzak@redhat.com>
Thu, 5 Sep 2019 14:46:14 +0000 (16:46 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Sep 2019 14:46:14 +0000 (16:46 +0200)
- stderr is used for the warning (like in fdisk)

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c
tests/expected/sfdisk/wipe-fs-to-dos
tests/expected/sfdisk/wipe-fs-to-dos.err

index 7032929134976f4b64b316942e5f34531543dd3b..deeb1dfe75e8524cb838a642af0413d43a1e1a90 100644 (file)
@@ -1476,7 +1476,7 @@ static void follow_wipe_mode(struct sfdisk *sf)
 
        if (dowipe) {
                if (!fdisk_is_ptcollision(sf->cxt)) {
-                       fdisk_warn(sf->cxt, _(
+                       fdisk_warnx(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));
index b9fab7a32ac0257d6ab753a3009f070ef8b78a49..317bbfb450873da2f91452ee4536adfcdedceb1d 100644 (file)
@@ -2,7 +2,6 @@
 =====Create FS================================
 
 =====Create DOS================================
-The old swap signature will be removed by a write command.
 
 Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors
 Disk model: scsi_debug      
@@ -11,7 +10,6 @@ Sector size (logical/physical): 512 bytes / 4096 bytes
 I/O size (minimum/optimal): 4096 bytes / <removed> bytes
 
 >>> Created a new <removed>.
-The old swap signature will be removed by a write command.
 
 <removed>1: Created a new <removed>.
 <removed>2: Done.
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..d0b17453043c251fd657d4ad56846dc5da494a22 100644 (file)
@@ -0,0 +1,2 @@
+The device contains 'swap' signature and it will be removed by a write command. See sfdisk(8) man page and --wipe option for more details.
+The device contains 'swap' signature and it will be removed by a write command. See sfdisk(8) man page and --wipe option for more details.