aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2006-03-23 06:00:05 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-23 10:38:08 -0500
commitce6ed29f3136bc4b3644ecf4091d6390d444f628 (patch)
treec85e83dd19f6954198721a5a3087aa97075c5f74 /kernel
parent02aaeb9b952f30b1ad6284d5d45be02030f679db (diff)
[PATCH] suspend: make progress printing prettier
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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/snapshot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 0036955357e0..1b46c2da5a50 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -83,7 +83,7 @@ static int save_highmem_zone(struct zone *zone)
83 void *kaddr; 83 void *kaddr;
84 unsigned long pfn = zone_pfn + zone->zone_start_pfn; 84 unsigned long pfn = zone_pfn + zone->zone_start_pfn;
85 85
86 if (!(pfn%1000)) 86 if (!(pfn%10000))
87 printk("."); 87 printk(".");
88 if (!pfn_valid(pfn)) 88 if (!pfn_valid(pfn))
89 continue; 89 continue;
@@ -122,13 +122,14 @@ int save_highmem(void)
122 struct zone *zone; 122 struct zone *zone;
123 int res = 0; 123 int res = 0;
124 124
125 pr_debug("swsusp: Saving Highmem\n"); 125 pr_debug("swsusp: Saving Highmem");
126 for_each_zone (zone) { 126 for_each_zone (zone) {
127 if (is_highmem(zone)) 127 if (is_highmem(zone))
128 res = save_highmem_zone(zone); 128 res = save_highmem_zone(zone);
129 if (res) 129 if (res)
130 return res; 130 return res;
131 } 131 }
132 printk("\n");
132 return 0; 133 return 0;
133} 134}
134 135