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 | |
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')
-rw-r--r-- | fdisks/cfdisk.c | 6 | ||||
-rw-r--r-- | fdisks/fdisk.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fdisks/cfdisk.c b/fdisks/cfdisk.c index 967a1034c..0ceed33ba 100644 --- a/fdisks/cfdisk.c +++ b/fdisks/cfdisk.c @@ -1820,7 +1820,7 @@ print_raw_table(void) { if ((fp = fopen(fname, "w")) == NULL) { char errstr[LINE_LENGTH]; snprintf(errstr, sizeof(errstr), - _("Cannot open file '%s'"), fname); + _("cannot open %s"), fname); print_warning(errstr); return; } @@ -1938,7 +1938,7 @@ print_p_info(void) { if (to_file) { if ((fp = fopen(fname, "w")) == NULL) { char errstr[LINE_LENGTH]; - snprintf(errstr, LINE_LENGTH, _("Cannot open file '%s'"), fname); + snprintf(errstr, LINE_LENGTH, _("cannot open %s"), fname); print_warning(errstr); return; } @@ -2022,7 +2022,7 @@ print_part_table(void) { if (to_file) { if ((fp = fopen(fname, "w")) == NULL) { char errstr[LINE_LENGTH]; - snprintf(errstr, LINE_LENGTH, _("Cannot open file '%s'"), fname); + snprintf(errstr, LINE_LENGTH, _("cannot open %s"), fname); print_warning(errstr); return; } 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 */ |