From: Marco A Benatto Date: Tue, 9 Feb 2021 15:33:06 +0000 (-0300) Subject: kern/mm: Fix grub_debug_calloc() compilation error X-Git-Tag: grub-2.06-rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9d8de960834f376087856f9d60a214b47c76f61;p=thirdparty%2Fgrub.git 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 Reviewed-by: Daniel Kiper --- diff --git a/grub-core/kern/mm.c b/grub-core/kern/mm.c index f2822a836..c070afc62 100644 --- a/grub-core/kern/mm.c +++ b/grub-core/kern/mm.c @@ -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);