diff options
| -rw-r--r-- | mm/memory_hotplug.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 60f6daad1076..a221fac1f47d 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
| @@ -1690,11 +1690,15 @@ static int is_memblock_offlined_cb(struct memory_block *mem, void *arg) | |||
| 1690 | { | 1690 | { |
| 1691 | int ret = !is_memblock_offlined(mem); | 1691 | int ret = !is_memblock_offlined(mem); |
| 1692 | 1692 | ||
| 1693 | if (unlikely(ret)) | 1693 | if (unlikely(ret)) { |
| 1694 | phys_addr_t beginpa, endpa; | ||
| 1695 | |||
| 1696 | beginpa = PFN_PHYS(section_nr_to_pfn(mem->start_section_nr)); | ||
| 1697 | endpa = PFN_PHYS(section_nr_to_pfn(mem->end_section_nr + 1))-1; | ||
| 1694 | pr_warn("removing memory fails, because memory " | 1698 | pr_warn("removing memory fails, because memory " |
| 1695 | "[%#010llx-%#010llx] is onlined\n", | 1699 | "[%pa-%pa] is onlined\n", |
| 1696 | PFN_PHYS(section_nr_to_pfn(mem->start_section_nr)), | 1700 | &beginpa, &endpa); |
| 1697 | PFN_PHYS(section_nr_to_pfn(mem->end_section_nr + 1))-1); | 1701 | } |
| 1698 | 1702 | ||
| 1699 | return ret; | 1703 | return ret; |
| 1700 | } | 1704 | } |
