* [PATCH 5/5] Hiberation: Fix speed display
@ 2010-05-26 7:10 Nigel Cunningham
0 siblings, 0 replies; 2+ messages in thread
From: Nigel Cunningham @ 2010-05-26 7:10 UTC (permalink / raw)
To: Rafael J. Wysocki, pm list, LKML, TuxOnIce-devel
Correct the situation where, if an error occurs while writing an image,
the speed display still uses the number of pages that should have been
written, rather than the number of pages that were written.
Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
---
kernel/power/swap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index ff2fc15..1e6e5b6 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -485,7 +485,7 @@ static int save_image(struct swap_map_handle *handle,
printk(KERN_CONT "\b\b\b\bdone\n");
else
printk(KERN_CONT "\n");
- swsusp_show_speed(&start, &stop, nr_to_write, "Wrote");
+ swsusp_show_speed(&start, &stop, nr_pages, "Wrote");
return ret;
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 5/5] Hiberation: Fix speed display
@ 2010-05-26 7:10 Nigel Cunningham
0 siblings, 0 replies; 2+ messages in thread
From: Nigel Cunningham @ 2010-05-26 7:10 UTC (permalink / raw)
To: Rafael J. Wysocki, pm list, LKML, TuxOnIce-devel
Correct the situation where, if an error occurs while writing an image,
the speed display still uses the number of pages that should have been
written, rather than the number of pages that were written.
Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
---
kernel/power/swap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index ff2fc15..1e6e5b6 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -485,7 +485,7 @@ static int save_image(struct swap_map_handle *handle,
printk(KERN_CONT "\b\b\b\bdone\n");
else
printk(KERN_CONT "\n");
- swsusp_show_speed(&start, &stop, nr_to_write, "Wrote");
+ swsusp_show_speed(&start, &stop, nr_pages, "Wrote");
return ret;
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-26 7:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-26 7:10 [PATCH 5/5] Hiberation: Fix speed display Nigel Cunningham
-- strict thread matches above, loose matches on Subject: below --
2010-05-26 7:10 Nigel Cunningham
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.