From 80492c78e67fdbe4c96c8a4011973d03086c4b9c Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 1 Jan 2012 13:18:42 +0400 Subject: [PATCH] restore: More detailed log on shmem restore Signed-off-by: Cyrill Gorcunov --- cr-restore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cr-restore.c b/cr-restore.c index 4cea99a9d..5502a7560 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -148,13 +148,13 @@ static int shmem_wait_and_open(struct shmem_info *si) char path[128]; int ret; - cr_wait_until(&si->lock, 1); - sprintf(path, "/proc/%d/map_files/%lx-%lx", si->real_pid, si->start, si->end); - pr_info("Waiting for [%s] to appear\n", path); + pr_info("%d: Waiting for [%s] to appear\n", getpid(), path); + cr_wait_until(&si->lock, 1); + pr_info("%d: Opening shmem [%s] \n", si->real_pid, path); ret = open(path, O_RDWR); if (ret >= 0) return ret;