diff options
author | Sami Kerola | 2012-07-15 10:39:57 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-16 18:18:22 +0200 |
commit | 289dcc90234680063a336925a99d1ef04e97cbda (patch) | |
tree | cb8656c16143daa406ea9d706406ca12d94d89d3 /fdisks/fdisk.c | |
parent | translation: unify stat error messages (diff) | |
download | kernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.tar.gz kernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.tar.xz kernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.zip |
translation: unify file open error messages
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r-- | fdisks/fdisk.c | 6 |
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 */ |