remove extra newlines in grub_util_* strings
grub_util_{info,warn,error} already add trailing newlines, so remove them from format strings. Also trailing full stops are already added.
This commit is contained in:
parent
a139188eb5
commit
5082ea6184
8 changed files with 30 additions and 30 deletions
|
@ -494,7 +494,7 @@ grub_install_make_image_wrap_file (const char *dir, const char *prefix,
|
|||
|
||||
tgt = grub_install_get_image_target (mkimage_target);
|
||||
if (!tgt)
|
||||
grub_util_error (_("unknown target format %s\n"), mkimage_target);
|
||||
grub_util_error (_("unknown target format %s"), mkimage_target);
|
||||
|
||||
grub_install_generate_image (dir, prefix, fp, outname,
|
||||
modules.entries, memdisk_path,
|
||||
|
|
|
@ -773,7 +773,7 @@ bless (grub_device_t dev, const char *path, int x86)
|
|||
err = grub_mac_bless_inode (dev, st.st_ino, S_ISDIR (st.st_mode), x86);
|
||||
if (err)
|
||||
grub_util_error ("%s", grub_errmsg);
|
||||
grub_util_info ("blessed\n");
|
||||
grub_util_info ("blessed");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1070,7 +1070,7 @@ main (int argc, char *argv[])
|
|||
efidir_is_mac = 1;
|
||||
|
||||
if (!efidir_is_mac && grub_strcmp (fs->name, "fat") != 0)
|
||||
grub_util_error (_("%s doesn't look like an EFI partition.\n"), efidir);
|
||||
grub_util_error (_("%s doesn't look like an EFI partition"), efidir);
|
||||
|
||||
/* The EFI specification requires that an EFI System Partition must
|
||||
contain an "EFI" subdirectory, and that OS loaders are stored in
|
||||
|
@ -1271,7 +1271,7 @@ main (int argc, char *argv[])
|
|||
|
||||
if (!config.is_cryptodisk_enabled && have_cryptodisk)
|
||||
grub_util_error (_("attempt to install to encrypted disk without cryptodisk enabled. "
|
||||
"Set `%s' in file `%s'."), "GRUB_ENABLE_CRYPTODISK=y",
|
||||
"Set `%s' in file `%s'"), "GRUB_ENABLE_CRYPTODISK=y",
|
||||
grub_util_get_config_filename ());
|
||||
|
||||
if (disk_module && grub_strcmp (disk_module, "ata") == 0)
|
||||
|
|
|
@ -140,7 +140,7 @@ process_input_dir (const char *input_dir, enum grub_install_plat platform)
|
|||
|
||||
prefix = xasprintf ("/%s", subdir);
|
||||
if (!targets[platform].mkimage_target)
|
||||
grub_util_error (_("unsupported platform %s\n"), platsub);
|
||||
grub_util_error (_("unsupported platform %s"), platsub);
|
||||
|
||||
grub_cfg = grub_util_path_concat (2, grubdir, "grub.cfg");
|
||||
cfg = grub_util_fopen (grub_cfg, "wb");
|
||||
|
|
|
@ -279,7 +279,7 @@ write_reloc_section (FILE* fp, const char *name, char *image,
|
|||
break;
|
||||
#endif
|
||||
default:
|
||||
grub_util_error ("unknown pe relocation type %d\n", pe_rel->type);
|
||||
grub_util_error ("unknown pe relocation type %d", pe_rel->type);
|
||||
}
|
||||
|
||||
if (type ==
|
||||
|
|
|
@ -823,7 +823,7 @@ compress_kernel (const struct grub_install_image_target_desc *image_target, char
|
|||
|
||||
if (image_target->flags & PLATFORM_FLAGS_DECOMPRESSORS
|
||||
&& (comp != GRUB_COMPRESSION_NONE))
|
||||
grub_util_error (_("unknown compression %d\n"), comp);
|
||||
grub_util_error (_("unknown compression %d"), comp);
|
||||
|
||||
*core_img = xmalloc (kernel_size);
|
||||
memcpy (*core_img, kernel_img, kernel_size);
|
||||
|
@ -1234,7 +1234,7 @@ grub_install_generate_image (const char *dir, const char *prefix,
|
|||
name = "none_decompress.img";
|
||||
break;
|
||||
default:
|
||||
grub_util_error (_("unknown compression %d\n"), comp);
|
||||
grub_util_error (_("unknown compression %d"), comp);
|
||||
}
|
||||
|
||||
decompress_path = grub_util_get_path (dir, name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue