* [PATCH] PM / Hibernate: print physical addresses consistently with other parts of kernel
@ 2012-02-14 0:04 Bjorn Helgaas
2012-02-14 21:36 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2012-02-14 0:04 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: linux-kernel, linux-pm
Print physical address info in a style consistent with the %pR style used
elsewhere in the kernel.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
kernel/power/snapshot.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 6a768e5..8e2e746 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -711,9 +711,10 @@ static void mark_nosave_pages(struct memory_bitmap *bm)
list_for_each_entry(region, &nosave_regions, list) {
unsigned long pfn;
- pr_debug("PM: Marking nosave pages: %016lx - %016lx\n",
- region->start_pfn << PAGE_SHIFT,
- region->end_pfn << PAGE_SHIFT);
+ pr_debug("PM: Marking nosave pages: [mem %#010llx-%#010llx]\n",
+ (unsigned long long) region->start_pfn << PAGE_SHIFT,
+ ((unsigned long long) region->end_pfn << PAGE_SHIFT)
+ - 1);
for (pfn = region->start_pfn; pfn < region->end_pfn; pfn++)
if (pfn_valid(pfn)) {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PM / Hibernate: print physical addresses consistently with other parts of kernel
2012-02-14 0:04 [PATCH] PM / Hibernate: print physical addresses consistently with other parts of kernel Bjorn Helgaas
@ 2012-02-14 21:36 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2012-02-14 21:36 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-kernel, linux-pm
On Tuesday, February 14, 2012, Bjorn Helgaas wrote:
> Print physical address info in a style consistent with the %pR style used
> elsewhere in the kernel.
>
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Applied.
Thanks,
Rafael
> ---
> kernel/power/snapshot.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
> index 6a768e5..8e2e746 100644
> --- a/kernel/power/snapshot.c
> +++ b/kernel/power/snapshot.c
> @@ -711,9 +711,10 @@ static void mark_nosave_pages(struct memory_bitmap *bm)
> list_for_each_entry(region, &nosave_regions, list) {
> unsigned long pfn;
>
> - pr_debug("PM: Marking nosave pages: %016lx - %016lx\n",
> - region->start_pfn << PAGE_SHIFT,
> - region->end_pfn << PAGE_SHIFT);
> + pr_debug("PM: Marking nosave pages: [mem %#010llx-%#010llx]\n",
> + (unsigned long long) region->start_pfn << PAGE_SHIFT,
> + ((unsigned long long) region->end_pfn << PAGE_SHIFT)
> + - 1);
>
> for (pfn = region->start_pfn; pfn < region->end_pfn; pfn++)
> if (pfn_valid(pfn)) {
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-14 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-14 0:04 [PATCH] PM / Hibernate: print physical addresses consistently with other parts of kernel Bjorn Helgaas
2012-02-14 21:36 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®