From bbc5a342eb3e9885f34d887a163b0e2037e0e096 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 6 Mar 2012 11:36:39 +0100 Subject: [PATCH] * util/grub-mkimage.c (generate_image): Unify diskboot.img size message. --- ChangeLog | 4 ++++ util/grub-mkimage.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2b102cf48..cf1623f36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-03-05 Vladimir Serbinenko + + * util/grub-mkimage.c (generate_image): Unify diskboot.img size message. + 2012-03-05 Vladimir Serbinenko * grub-core/net/http.c: Add TRANSLATORS comments. diff --git a/util/grub-mkimage.c b/util/grub-mkimage.c index ef3421628..b49c0815d 100644 --- a/util/grub-mkimage.c +++ b/util/grub-mkimage.c @@ -1288,7 +1288,8 @@ generate_image (const char *dir, const char *prefix, boot_path = grub_util_get_path (dir, "diskboot.img"); boot_size = grub_util_get_image_size (boot_path); if (boot_size != GRUB_DISK_SECTOR_SIZE) - grub_util_error ("%s", _("diskboot.img is not one sector size")); + grub_util_error (_("diskboot.img size must be %u bytes"), + GRUB_DISK_SECTOR_SIZE); boot_img = grub_util_read_image (boot_path);