ANDROID: Fix wrong pr_err type specifier in add_memory_subsection

Wrong pr_err type specifier causes the following warning:
error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Werror=format=]
Fix it by changing to the correct type specifyer for u64.

Fixes: 42db6c2e98 ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection")
Bug: 170460867
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I6a59462a2a698112b97806618283a7afddb811cb
This commit is contained in:
Suren Baghdasaryan
2021-12-13 11:50:44 -08:00
parent 5e960d7e58
commit 81a34d6495

View File

@@ -1501,7 +1501,7 @@ int add_memory_subsection(int nid, u64 start, u64 size)
if (!IS_ALIGNED(start, SUBSECTION_SIZE) ||
!IS_ALIGNED(size, SUBSECTION_SIZE)) {
pr_err("%s: start 0x%lx size 0x%lx not aligned to subsection size\n",
pr_err("%s: start 0x%llx size 0x%llx not aligned to subsection size\n",
__func__, start, size);
return -EINVAL;
}
@@ -1521,7 +1521,7 @@ int add_memory_subsection(int nid, u64 start, u64 size)
if (ret) {
if (IS_ENABLED(CONFIG_ARCH_KEEP_MEMBLOCK))
memblock_remove(start, size);
pr_err("%s failed to add subsection start 0x%lx size 0x%lx\n",
pr_err("%s failed to add subsection start 0x%llx size 0x%llx\n",
__func__, start, size);
}
mem_hotplug_done();