Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9671ff19 authored by Faiyaz Mohammed's avatar Faiyaz Mohammed
Browse files

mm: page_alloc: Add u64 typecast to memblock_dbg call in free_reserved_area



In 32 bit kernel it is observed that "%#016llx" specifier is not work
properly with return value of __pa().
[    0.649669] Freeing initrd memory: 776K
[    0.649696] memblock_free: [0xc19034a0456ff000-0xc15c615bc199011c] 0xc563d000

To get the proper print with "%#016llx" specifier, __pa() return value is
typecasted with (u64).
[    0.754901] Freeing initrd memory: 776K
[    0.754936] memblock_free: [0x0000004563d000-0x000000456ff000] free_initrd+0x3c/0x60.

Change-Id: I7e84e6c49fefaf3016113b1e547bad0e212a19ed
Signed-off-by: default avatarFaiyaz Mohammed <faiyazm@codeaurora.org>
parent 7c9d79dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7436,7 +7436,7 @@ unsigned long free_reserved_area(void *start, void *end, int poison, char *s)

#ifdef CONFIG_HAVE_MEMBLOCK
		memblock_dbg("memblock_free: [%#016llx-%#016llx] %pS\n",
			__pa(start), __pa(end), (void *)_RET_IP_);
			(u64)__pa(start), (u64)__pa(end), (void *)_RET_IP_);
#endif

	return pages;