提交 ce6ed29f 编写于 作者: P Pavel Machek 提交者: Linus Torvalds

[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: NPavel Machek <pavel@suse.cz>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 02aaeb9b
...@@ -83,7 +83,7 @@ static int save_highmem_zone(struct zone *zone) ...@@ -83,7 +83,7 @@ static int save_highmem_zone(struct zone *zone)
void *kaddr; void *kaddr;
unsigned long pfn = zone_pfn + zone->zone_start_pfn; unsigned long pfn = zone_pfn + zone->zone_start_pfn;
if (!(pfn%1000)) if (!(pfn%10000))
printk("."); printk(".");
if (!pfn_valid(pfn)) if (!pfn_valid(pfn))
continue; continue;
...@@ -122,13 +122,14 @@ int save_highmem(void) ...@@ -122,13 +122,14 @@ int save_highmem(void)
struct zone *zone; struct zone *zone;
int res = 0; int res = 0;
pr_debug("swsusp: Saving Highmem\n"); pr_debug("swsusp: Saving Highmem");
for_each_zone (zone) { for_each_zone (zone) {
if (is_highmem(zone)) if (is_highmem(zone))
res = save_highmem_zone(zone); res = save_highmem_zone(zone);
if (res) if (res)
return res; return res;
} }
printk("\n");
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册