mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
image: Add missing newlines to warn message
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
f0fd0d132a
commit
fcfcc13ca4
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue