]> git.proxmox.com Git - grub2.git/commitdiff
* util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 6 Mar 2012 10:36:39 +0000 (11:36 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 6 Mar 2012 10:36:39 +0000 (11:36 +0100)
ChangeLog
util/grub-mkimage.c

index 2b102cf48e298ab083723089cce349c0663cbe55..cf1623f36a00aa02d077f1ef5301e03e38af9134 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
+
 2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/net/http.c: Add TRANSLATORS comments.
index ef34216282fc0d153fd397793da5ee27593fbb26..b49c0815d088786a1851d044bbaa4d47544373a3 100644 (file)
@@ -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);