]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 10 Mar 2012 12:10:07 +0000 (13:10 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 10 Mar 2012 12:10:07 +0000 (13:10 +0100)
"out of memory" error messagge.

ChangeLog
grub-core/loader/efi/chainloader.c

index e2b49a89e94a4e9331393e1909dd09b23952aa01..19ec38565494270c240ff8ec696628fddfac150e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
+       "out of memory" error messagge.
+
 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
index 064bd7ce6e30f4a6105ec5178581d1587aab3e1c..46144547c3085b3b1607a4f807d43e5fe8880f83 100644 (file)
@@ -252,7 +252,8 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)),
                              pages, &address);
   if (status != GRUB_EFI_SUCCESS)
     {
-      grub_error (GRUB_ERR_OUT_OF_MEMORY, "cannot allocate %u pages", pages);
+      grub_dprintf ("chain", "Failed to allocate %u pages\n", pages);
+      grub_error (GRUB_ERR_OUT_OF_MEMORY, N_("out of memory"));
       goto fail;
     }