]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
kern/mm: Fix grub_debug_calloc() compilation error
authorMarco A Benatto <mbenatto@redhat.com>
Tue, 9 Feb 2021 15:33:06 +0000 (12:33 -0300)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:20 +0000 (15:54 +0100)
Fix compilation error due to missing parameter to
grub_printf() when MM_DEBUG is defined.

Fixes: 64e26162e (calloc: Make sure we always have an overflow-checking calloc() available)
Signed-off-by: Marco A Benatto <mbenatto@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/mm.c

index f2822a83640bb516d3b6776e13057f2cffaf9a7b..c070afc621f80506c3742141a4eb446ac035c70c 100644 (file)
@@ -594,7 +594,7 @@ grub_debug_calloc (const char *file, int line, grub_size_t nmemb, grub_size_t si
 
   if (grub_mm_debug)
     grub_printf ("%s:%d: calloc (0x%" PRIxGRUB_SIZE ", 0x%" PRIxGRUB_SIZE ") = ",
-                file, line, size);
+                file, line, nmemb, size);
   ptr = grub_calloc (nmemb, size);
   if (grub_mm_debug)
     grub_printf ("%p\n", ptr);