PM / Hibernate: Add newline to load_image() fail path
authorJiri Slaby <jirislaby@gmail.com>
Wed, 28 Oct 2009 21:55:42 +0000 (22:55 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 3 Nov 2009 10:03:09 +0000 (11:03 +0100)
Finish a line by \n when load_image fails in the middle of loading.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/swap.c

index afa052b61161407b5691901e846e27df33bfd0e1..890f6b11b1d3afe3cde18f816e5a77fb09cf99cd 100644 (file)
@@ -536,7 +536,8 @@ static int load_image(struct swap_map_handle *handle,
                snapshot_write_finalize(snapshot);
                if (!snapshot_image_loaded(snapshot))
                        error = -ENODATA;
-       }
+       } else
+               printk("\n");
        swsusp_show_speed(&start, &stop, nr_to_read, "Read");
        return error;
 }