mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
kern/mm: Fix grub_debug_calloc() compilation error
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>
This commit is contained in:
1 parent
e346414725
commit
a9d8de9608
1 file changed
+1
-1
+1
-1
@@ -594,7 +594,7 @@ grub_debug_calloc (const char *file, int line, grub_size_t nmemb, grub_size_t si
|
|||||||
|
|
||||||
if (grub_mm_debug)
|
if (grub_mm_debug)
|
||||||
grub_printf ("%s:%d: calloc (0x%" PRIxGRUB_SIZE ", 0x%" PRIxGRUB_SIZE ") = ",
|
grub_printf ("%s:%d: calloc (0x%" PRIxGRUB_SIZE ", 0x%" PRIxGRUB_SIZE ") = ",
|
||||||
file, line, size);
|
file, line, nmemb, size);
|
||||||
ptr = grub_calloc (nmemb, size);
|
ptr = grub_calloc (nmemb, size);
|
||||||
if (grub_mm_debug)
|
if (grub_mm_debug)
|
||||||
grub_printf ("%p\n", ptr);
|
grub_printf ("%p\n", ptr);
|
||||||
|
|||||||
Reference in new issue
Block a user