Skip to contentSkip to conversation

Hiberation: Fix speed display

PATCH In review Nigel Cunningham 1 participant 1 message May 26, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 Hiberation: Fix speed display

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.

---
 kernel/power/swap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/power/swap.c +1 -1
index ff2fc15..1e6e5b6 100644
@@ -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;
 }
 
Signature · 1 line
1.7.0.4