image: Add missing newlines to warn message

Submitted by Cyrill Gorcunov on June 7, 2018, 1:31 p.m.

Details

Message ID 20180607133122.4640-1-gorcunov@gmail.com
State Accepted
Series "image: Add missing newlines to warn message"
Headers show

Commit Message

Cyrill Gorcunov June 7, 2018, 1:31 p.m.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/image.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/image.c b/criu/image.c
index 108471b36b8f..e28841ffa936 100644
--- a/criu/image.c
+++ b/criu/image.c
@@ -137,26 +137,26 @@  InventoryEntry *get_parent_inventory(void)
 
 	dir = openat(get_service_fd(IMG_FD_OFF), CR_PARENT_LINK, O_RDONLY);
 	if (dir == -1) {
-		pr_warn("Failed to open parent directory");
+		pr_warn("Failed to open parent directory\n");
 		return NULL;
 	}
 
 	img = open_image_at(dir, CR_FD_INVENTORY, O_RSTR);
 	if (!img) {
-		pr_warn("Failed to open parent pre-dump inventory image");
+		pr_warn("Failed to open parent pre-dump inventory image\n");
 		close(dir);
 		return NULL;
 	}
 
 	if (pb_read_one(img, &ie, PB_INVENTORY) < 0) {
-		pr_warn("Failed to read parent pre-dump inventory entry");
+		pr_warn("Failed to read parent pre-dump inventory entry\n");
 		close_image(img);
 		close(dir);
 		return NULL;
 	}
 
 	if (!ie->has_dump_uptime) {
-		pr_warn("Parent pre-dump inventory has no uptime");
+		pr_warn("Parent pre-dump inventory has no uptime\n");
 		inventory_entry__free_unpacked(ie, NULL);
 		ie = NULL;
 	}

Comments

Andrey Vagin June 14, 2018, 5:52 p.m.
Applied, thanks!

On Thu, Jun 07, 2018 at 04:31:22PM +0300, Cyrill Gorcunov wrote:
> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
> ---
>  criu/image.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/criu/image.c b/criu/image.c
> index 108471b36b8f..e28841ffa936 100644
> --- a/criu/image.c
> +++ b/criu/image.c
> @@ -137,26 +137,26 @@ InventoryEntry *get_parent_inventory(void)
>  
>  	dir = openat(get_service_fd(IMG_FD_OFF), CR_PARENT_LINK, O_RDONLY);
>  	if (dir == -1) {
> -		pr_warn("Failed to open parent directory");
> +		pr_warn("Failed to open parent directory\n");
>  		return NULL;
>  	}
>  
>  	img = open_image_at(dir, CR_FD_INVENTORY, O_RSTR);
>  	if (!img) {
> -		pr_warn("Failed to open parent pre-dump inventory image");
> +		pr_warn("Failed to open parent pre-dump inventory image\n");
>  		close(dir);
>  		return NULL;
>  	}
>  
>  	if (pb_read_one(img, &ie, PB_INVENTORY) < 0) {
> -		pr_warn("Failed to read parent pre-dump inventory entry");
> +		pr_warn("Failed to read parent pre-dump inventory entry\n");
>  		close_image(img);
>  		close(dir);
>  		return NULL;
>  	}
>  
>  	if (!ie->has_dump_uptime) {
> -		pr_warn("Parent pre-dump inventory has no uptime");
> +		pr_warn("Parent pre-dump inventory has no uptime\n");
>  		inventory_entry__free_unpacked(ie, NULL);
>  		ie = NULL;
>  	}
> -- 
> 2.14.4
>