Skip to content

Commit

Permalink
image: add a few missing newlines in pr_warn()
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
  • Loading branch information
adrianreber authored and avagin committed Oct 30, 2018
1 parent f5c4271 commit 79fdf20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions criu/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,26 +130,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;
}
Expand Down

0 comments on commit 79fdf20

Please sign in to comment.