Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212373
b: refs/heads/master
c: d0941ea
h: refs/heads/master
i:
  212371: 06e2674
v: v3
  • Loading branch information
Rafael J. Wysocki committed Oct 16, 2010
1 parent f1725ab commit 58b1b42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15bcb91d7e607d8a2e060f01f7784a7454668da4
refs/heads/master: d0941ead3fdd31aafff992d211bcefdbff1eaedb
12 changes: 6 additions & 6 deletions trunk/kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ static int software_resume(void)
goto Unlock;
}

pr_debug("PM: Checking image partition %s\n", resume_file);
pr_debug("PM: Checking hibernation image partition %s\n", resume_file);

/* Check if the device is there */
swsusp_resume_device = name_to_dev_t(resume_file);
Expand All @@ -733,10 +733,10 @@ static int software_resume(void)
}

Check_image:
pr_debug("PM: Resume from partition %d:%d\n",
pr_debug("PM: Hibernation image partition %d:%d present\n",
MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device));

pr_debug("PM: Checking hibernation image.\n");
pr_debug("PM: Looking for hibernation image.\n");
error = swsusp_check();
if (error)
goto Unlock;
Expand Down Expand Up @@ -768,14 +768,14 @@ static int software_resume(void)
goto Done;
}

pr_debug("PM: Reading hibernation image.\n");
pr_debug("PM: Loading hibernation image.\n");

error = swsusp_read(&flags);
swsusp_close(FMODE_READ);
if (!error)
hibernation_restore(flags & SF_PLATFORM_MODE);

printk(KERN_ERR "PM: Restore failed, recovering.\n");
printk(KERN_ERR "PM: Failed to load hibernation image, recovering.\n");
swsusp_free();
thaw_processes();
Done:
Expand All @@ -788,7 +788,7 @@ static int software_resume(void)
/* For success case, the suspend path will release the lock */
Unlock:
mutex_unlock(&pm_mutex);
pr_debug("PM: Resume from disk failed.\n");
pr_debug("PM: Hibernation image not present or could not be loaded.\n");
return error;
close_finish:
swsusp_close(FMODE_READ);
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/power/swap.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,13 +929,13 @@ int swsusp_check(void)
if (error)
blkdev_put(hib_resume_bdev, FMODE_READ);
else
pr_debug("PM: Signature found, resuming\n");
pr_debug("PM: Image signature found, resuming\n");
} else {
error = PTR_ERR(hib_resume_bdev);
}

if (error)
pr_debug("PM: Error %d checking image file\n", error);
pr_debug("PM: Image not found (code %d)\n", error);

return error;
}
Expand Down

0 comments on commit 58b1b42

Please sign in to comment.