]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkzone: correct the wording of an error message, from ioctl to function
authorBenno Schulenberg <bensberg@telfort.nl>
Sun, 9 Feb 2025 08:23:26 +0000 (09:23 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 10 Feb 2025 11:36:57 +0000 (12:36 +0100)
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/blkzone.c

index 843f3c7b0c3182bb68d987694a69013a86d1298b..9e648484b0c107c350e03cf7cac3e1a5326beb60 100644 (file)
@@ -149,7 +149,7 @@ static int init_device(struct blkzone_control *ctl, int mode)
                errx(EXIT_FAILURE, _("%s: not a block device"), ctl->devname);
 
        if (blkdev_get_sectors(fd, (unsigned long long *) &ctl->total_sectors))
-               err(EXIT_FAILURE, _("%s: blkdev_get_sectors ioctl failed"), ctl->devname);
+               err(EXIT_FAILURE, _("%s: blkdev_get_sectors() failed"), ctl->devname);
 
        if (blkdev_get_sector_size(fd, &ctl->secsize))
                err(EXIT_FAILURE, _("%s: BLKSSZGET ioctl failed"), ctl->devname);