btrfs-progs: mkfs: print device name while trimming

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-01-06 13:47:07 +01:00
parent f49fb67a25
commit 206ae800dd

View File

@ -1869,8 +1869,8 @@ int btrfs_prepare_device(int fd, const char *file, u64 *block_count_ret,
*/
if (discard_range(fd, 0, 0) == 0) {
if (opflags & PREP_DEVICE_VERBOSE)
printf("Performing full device TRIM (%s) ...\n",
pretty_size(block_count));
printf("Performing full device TRIM %s (%s) ...\n",
file, pretty_size(block_count));
discard_blocks(fd, 0, block_count);
}
}