diff mbox

PM / Hibernate: print physical addresses consistently with other parts of kernel

Message ID 20130603182029.16063.60343.stgit@bhelgaas-glaptop (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Bjorn Helgaas June 3, 2013, 6:20 p.m. UTC
Print physical address info in a style consistent with the %pR style used
elsewhere in the kernel.

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>
---
 kernel/power/snapshot.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Rafael Wysocki June 3, 2013, 8 p.m. UTC | #1
On Monday, June 03, 2013 12:20:29 PM Bjorn Helgaas wrote:
> Print physical address info in a style consistent with the %pR style used
> elsewhere in the kernel.
> 
> 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>

Queued up for 3.11, thanks Bjorn!

Rafael


> ---
>  kernel/power/snapshot.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
> index 0de2857..7872a35 100644
> --- a/kernel/power/snapshot.c
> +++ b/kernel/power/snapshot.c
> @@ -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);
>  }
>  
>  /*
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 0de2857..7872a35 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -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);
 }
 
 /*