1From a9d8de960834f376087856f9d60a214b47c76f61 Mon Sep 17 00:00:00 2001 2From: Marco A Benatto <mbenatto@redhat.com> 3Date: Tue, 9 Feb 2021 12:33:06 -0300 4Subject: [PATCH] kern/mm: Fix grub_debug_calloc() compilation error 5 6Fix compilation error due to missing parameter to 7grub_printf() when MM_DEBUG is defined. 8 9Fixes: 64e26162e (calloc: Make sure we always have an overflow-checking calloc() available) 10 11Signed-off-by: Marco A Benatto <mbenatto@redhat.com> 12Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> 13Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> 14--- 15 grub-core/kern/mm.c | 2 +- 16 1 file changed, 1 insertion(+), 1 deletion(-) 17 18diff --git a/grub-core/kern/mm.c b/grub-core/kern/mm.c 19index f2822a8..c070afc 100644 20--- a/grub-core/kern/mm.c 21+++ b/grub-core/kern/mm.c 22@@ -594,7 +594,7 @@ grub_debug_calloc (const char *file, int line, grub_size_t nmemb, grub_size_t si 23 24 if (grub_mm_debug) 25 grub_printf ("%s:%d: calloc (0x%" PRIxGRUB_SIZE ", 0x%" PRIxGRUB_SIZE ") = ", 26- file, line, size); 27+ file, line, nmemb, size); 28 ptr = grub_calloc (nmemb, size); 29 if (grub_mm_debug) 30 grub_printf ("%p\n", ptr); 31-- 322.14.2 33 34