mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] suspend: make progress printing prettier
@ 2006-02-05 11:45 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2006-02-05 11:45 UTC (permalink / raw)
  To: Andrew Morton, kernel list

Combination of printk/pr_debug led to <7> in the middle of the line,
and we printed way too many dots.

Signed-off-by: Pavel Machek <pavel@suse.cz>

diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 41f6636..c9c293f 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -80,7 +80,7 @@ static int save_highmem_zone(struct zone
 		void *kaddr;
 		unsigned long pfn = zone_pfn + zone->zone_start_pfn;
 
-		if (!(pfn%1000))
+		if (!(pfn%10000))
 			printk(".");
 		if (!pfn_valid(pfn))
 			continue;
@@ -121,13 +121,14 @@ int save_highmem(void)
 	struct zone *zone;
 	int res = 0;
 
-	pr_debug("swsusp: Saving Highmem\n");
+	pr_debug("swsusp: Saving Highmem");
 	for_each_zone (zone) {
 		if (is_highmem(zone))
 			res = save_highmem_zone(zone);
 		if (res)
 			return res;
 	}
+	printk("\n");
 	return 0;
 }
 

-- 
Thanks, Sharp!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-05 11:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-05 11:45 [patch] suspend: make progress printing prettier Pavel Machek

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®