Skip to content

Commit 00974b9

Browse files
geerturppt
authored andcommitted
memblock: Add missing debug code to memblock_add_node()
All other memblock APIs built on top of memblock_add_range() contain debug code to print their parameters. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/c45e5218b6fcf0e3aeb63d9a9d9792addae0bb7a.1628672041.git.geert+renesas@glider.be
1 parent 36a21d5 commit 00974b9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mm/memblock.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,11 @@ static int __init_memblock memblock_add_range(struct memblock_type *type,
665665
int __init_memblock memblock_add_node(phys_addr_t base, phys_addr_t size,
666666
int nid)
667667
{
668+
phys_addr_t end = base + size - 1;
669+
670+
memblock_dbg("%s: [%pa-%pa] nid=%d %pS\n", __func__,
671+
&base, &end, nid, (void *)_RET_IP_);
672+
668673
return memblock_add_range(&memblock.memory, base, size, nid, 0);
669674
}
670675

0 commit comments

Comments
 (0)