Hi guys,
If the kernel doesn't have support for platform mode, uswsusp complains
loudly.
suspend: pm_ops->prepare returned error -1
suspend: Snapshotting system
...
suspend: Saving image data pages ...
suspend: pm_ops->enter returned error -1, calling power_off
These are harmless messages, because it will just fallback to poweroff,
but it confuses users. I propose to remove the messages.
OK to commit?
Index: suspend-cvs20060928/suspend.c
===================================================================
--- suspend-cvs20060928/suspend.c (revision 263)
+++ suspend-cvs20060928/suspend.c (working copy)
@@ -666,9 +666,6 @@
reboot();
else if (use_platform_suspend) {
int ret = platform_enter(snapshot_fd);
- if (ret < 0)
- fprintf(stderr, "suspend: pm_ops->enter returned"
- " error %d, calling power_off\n", ret);
}
power_off();
/* Signature is on disk, it is very dangerous to continue now.
@@ -706,9 +703,6 @@
if (use_platform_suspend) {
int ret = platform_prepare(snapshot_fd);
- if (ret < 0)
- fprintf(stderr, "suspend: pm_ops->prepare returned "
- "error %d\n", ret);
}
printf("suspend: Snapshotting system\n");
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/suspend-devel