public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] PM / Hibernate: swap, use KERN_CONT
@ 2009-10-10 12:00 Jiri Slaby
  2009-10-10 12:15 ` Pavel Machek
  2009-10-28 22:08 ` Rafael J. Wysocki
  0 siblings, 2 replies; 4+ messages in thread
From: Jiri Slaby @ 2009-10-10 12:00 UTC (permalink / raw)
  To: rjw; +Cc: linux-pm, linux-kernel, Jiri Slaby

Use KERN_CONT in save_image for printks. So that anybody won't
try to add a loglevel.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
 kernel/power/swap.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 47586d9..4c0f80b 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -437,7 +437,7 @@ static int save_image(struct swap_map_handle *handle,
 		if (ret)
 			break;
 		if (!(nr_pages % m))
-			printk("\b\b\b\b%3d%%", nr_pages / m);
+			printk(KERN_CONT "\b\b\b\b%3d%%", nr_pages / m);
 		nr_pages++;
 	}
 	err2 = wait_on_bio_chain(&bio);
@@ -445,9 +445,9 @@ static int save_image(struct swap_map_handle *handle,
 	if (!ret)
 		ret = err2;
 	if (!ret)
-		printk("\b\b\b\bdone\n");
+		printk(KERN_CONT "\b\b\b\bdone\n");
 	else
-		printk("\n");
+		printk(KERN_CONT "\n");
 	swsusp_show_speed(&start, &stop, nr_to_write, "Wrote");
 	return ret;
 }
-- 
1.6.4.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-28 22:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-10 12:00 [PATCH 1/1] PM / Hibernate: swap, use KERN_CONT Jiri Slaby
2009-10-10 12:15 ` Pavel Machek
2009-10-10 12:19   ` Jiri Slaby
2009-10-28 22:08 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox