Skip to content

Commit

Permalink
[PATCH] suspend: make progress printing prettier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Mar 23, 2006
1 parent 02aaeb9 commit ce6ed29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/power/snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int save_highmem_zone(struct zone *zone)
void *kaddr;
unsigned long pfn = zone_pfn + zone->zone_start_pfn;

if (!(pfn%1000))
if (!(pfn%10000))
printk(".");
if (!pfn_valid(pfn))
continue;
Expand Down Expand Up @@ -122,13 +122,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;
}

Expand Down

0 comments on commit ce6ed29

Please sign in to comment.