]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
PM / Hibernate: print physical addresses consistently with other parts of kernel
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Jun 2013 18:20:29 +0000 (18:20 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 3 Jun 2013 19:48:18 +0000 (21:48 +0200)
Print physical address info in a style consistent with the %pR style
used elsewhere in the kernel.

Commit 69f1d475cc did this for a similar printk in this file, but I
must have missed this one.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/snapshot.c

index 0de28576807df9e7dc5be5f05d75a0faa937caf2..7872a35eafe754fb1cdb680ff579562b7f4a602b 100644 (file)
@@ -642,8 +642,9 @@ __register_nosave_region(unsigned long start_pfn, unsigned long end_pfn,
        region->end_pfn = end_pfn;
        list_add_tail(&region->list, &nosave_regions);
  Report:
-       printk(KERN_INFO "PM: Registered nosave memory: %016lx - %016lx\n",
-               start_pfn << PAGE_SHIFT, end_pfn << PAGE_SHIFT);
+       printk(KERN_INFO "PM: Registered nosave memory: [mem %#010llx-%#010llx]\n",
+               (unsigned long long) start_pfn << PAGE_SHIFT,
+               ((unsigned long long) end_pfn << PAGE_SHIFT) - 1);
 }
 
 /*