mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
PM / Hibernate: Swap, use KERN_CONT
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> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
parent
8e60c6a134
commit
66d0ae4d6f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue