Commit 79fdf208 authored by Adrian Reber's avatar Adrian Reber Committed by Andrei Vagin

image: add a few missing newlines in pr_warn()

Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent f5c42711
...@@ -130,26 +130,26 @@ InventoryEntry *get_parent_inventory(void) ...@@ -130,26 +130,26 @@ InventoryEntry *get_parent_inventory(void)
dir = openat(get_service_fd(IMG_FD_OFF), CR_PARENT_LINK, O_RDONLY); dir = openat(get_service_fd(IMG_FD_OFF), CR_PARENT_LINK, O_RDONLY);
if (dir == -1) { if (dir == -1) {
pr_warn("Failed to open parent directory"); pr_warn("Failed to open parent directory\n");
return NULL; return NULL;
} }
img = open_image_at(dir, CR_FD_INVENTORY, O_RSTR); img = open_image_at(dir, CR_FD_INVENTORY, O_RSTR);
if (!img) { 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); close(dir);
return NULL; return NULL;
} }
if (pb_read_one(img, &ie, PB_INVENTORY) < 0) { 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_image(img);
close(dir); close(dir);
return NULL; return NULL;
} }
if (!ie->has_dump_uptime) { 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); inventory_entry__free_unpacked(ie, NULL);
ie = NULL; ie = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment