summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 3fede9591..99174faef 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -1783,7 +1783,7 @@ static void print_partition_table_from_option(char *device, unsigned long sector
struct fdisk_context *cxt = fdisk_new_context_from_filename(device, 1); /* read-only */
if (!cxt)
- err(EXIT_FAILURE, _("unable to open %s"), device);
+ err(EXIT_FAILURE, _("cannot open %s"), device);
if (sector_size) /* passed -b option, override autodiscovery */
cxt->phy_sector_size = cxt->sector_size = sector_size;
/* passed CHS option(s), override autodiscovery */
@@ -1970,7 +1970,7 @@ static sector_t get_dev_blocks(char *dev)
sector_t size;
if ((fd = open(dev, O_RDONLY)) < 0)
- err(EXIT_FAILURE, _("unable to open %s"), dev);
+ err(EXIT_FAILURE, _("cannot open %s"), dev);
if (blkdev_get_sectors(fd, &size) == -1) {
close(fd);
err(EXIT_FAILURE, _("BLKGETSIZE ioctl failed on %s"), dev);
@@ -2085,7 +2085,7 @@ int main(int argc, char **argv)
cxt = fdisk_new_context_from_filename(argv[optind], 0);
if (!cxt)
- err(EXIT_FAILURE, _("unable to open %s"), argv[optind]);
+ err(EXIT_FAILURE, _("cannot open %s"), argv[optind]);
if (sector_size) /* passed -b option, override autodiscovery */
cxt->phy_sector_size = cxt->sector_size = sector_size;
/* passed CHS option(s), override autodiscovery */