Commit 14b5b7cf authored by Nigel Cunningham's avatar Nigel Cunningham Committed by Linus Torvalds

[PATCH] swsusp: clean up whitespace in freezer output

Minor whitespace and formatting modifications for the freezer.
Signed-off-by: default avatarNigel Cunningham <nigel@suspend2.net>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 32d50f57
...@@ -86,7 +86,7 @@ int freeze_processes(void) ...@@ -86,7 +86,7 @@ int freeze_processes(void)
unsigned long start_time; unsigned long start_time;
struct task_struct *g, *p; struct task_struct *g, *p;
printk( "Stopping tasks: " ); printk("Stopping tasks... ");
start_time = jiffies; start_time = jiffies;
user_frozen = 0; user_frozen = 0;
do { do {
...@@ -134,21 +134,21 @@ int freeze_processes(void) ...@@ -134,21 +134,21 @@ int freeze_processes(void)
* but it cleans up leftover PF_FREEZE requests. * but it cleans up leftover PF_FREEZE requests.
*/ */
if (todo) { if (todo) {
printk( "\n" ); printk("\n");
printk(KERN_ERR " stopping tasks timed out " printk(KERN_ERR "Stopping tasks timed out "
"after %d seconds (%d tasks remaining):\n", "after %d seconds (%d tasks remaining):\n",
TIMEOUT / HZ, todo); TIMEOUT / HZ, todo);
read_lock(&tasklist_lock); read_lock(&tasklist_lock);
do_each_thread(g, p) { do_each_thread(g, p) {
if (freezeable(p) && !frozen(p)) if (freezeable(p) && !frozen(p))
printk(KERN_ERR " %s\n", p->comm); printk(KERN_ERR " %s\n", p->comm);
cancel_freezing(p); cancel_freezing(p);
} while_each_thread(g, p); } while_each_thread(g, p);
read_unlock(&tasklist_lock); read_unlock(&tasklist_lock);
return todo; return todo;
} }
printk( "|\n" ); printk("done.\n");
BUG_ON(in_atomic()); BUG_ON(in_atomic());
return 0; return 0;
} }
...@@ -157,18 +157,18 @@ void thaw_processes(void) ...@@ -157,18 +157,18 @@ void thaw_processes(void)
{ {
struct task_struct *g, *p; struct task_struct *g, *p;
printk( "Restarting tasks..." ); printk("Restarting tasks... ");
read_lock(&tasklist_lock); read_lock(&tasklist_lock);
do_each_thread(g, p) { do_each_thread(g, p) {
if (!freezeable(p)) if (!freezeable(p))
continue; continue;
if (!thaw_process(p)) if (!thaw_process(p))
printk(KERN_INFO " Strange, %s not stopped\n", p->comm ); printk(KERN_INFO "Strange, %s not stopped\n", p->comm);
} while_each_thread(g, p); } while_each_thread(g, p);
read_unlock(&tasklist_lock); read_unlock(&tasklist_lock);
schedule(); schedule();
printk( " done\n" ); printk("done.\n");
} }
EXPORT_SYMBOL(refrigerator); EXPORT_SYMBOL(refrigerator);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment