Commit 2c48c4d6 authored by Christian Borntraeger's avatar Christian Borntraeger Committed by Martin Schwidefsky

[S390] improve suspend/resume error messages

From: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent fca3e357
...@@ -964,7 +964,8 @@ static int dcssblk_freeze(struct device *dev) ...@@ -964,7 +964,8 @@ static int dcssblk_freeze(struct device *dev)
break; break;
} }
if (rc) if (rc)
pr_err("Suspend failed because device %s is writeable.\n", pr_err("Suspending the system failed because DCSS device %s "
"is writable\n",
dev_info->segment_name); dev_info->segment_name);
return rc; return rc;
} }
...@@ -987,8 +988,8 @@ static int dcssblk_restore(struct device *dev) ...@@ -987,8 +988,8 @@ static int dcssblk_restore(struct device *dev)
goto out_panic; goto out_panic;
} }
if (start != entry->start || end != entry->end) { if (start != entry->start || end != entry->end) {
pr_err("Mismatch of start / end address after " pr_err("The address range of DCSS %s changed "
"resuming device %s\n", "while the system was suspended\n",
entry->segment_name); entry->segment_name);
goto out_panic; goto out_panic;
} }
......
...@@ -443,7 +443,7 @@ static int xpram_validate_checksums(void) ...@@ -443,7 +443,7 @@ static int xpram_validate_checksums(void)
*/ */
static void xpram_resume_error(const char *message) static void xpram_resume_error(const char *message)
{ {
pr_err("Resume error: %s\n", message); pr_err("Resuming the system failed: %s\n", message);
panic("xpram resume error\n"); panic("xpram resume error\n");
} }
......
...@@ -250,14 +250,14 @@ static int vmwdt_resume(void) ...@@ -250,14 +250,14 @@ static int vmwdt_resume(void)
static int vmwdt_suspend(void) static int vmwdt_suspend(void)
{ {
if (test_and_set_bit(VMWDT_OPEN, &vmwdt_is_open)) { if (test_and_set_bit(VMWDT_OPEN, &vmwdt_is_open)) {
pr_err("The watchdog is in use. " pr_err("The system cannot be suspended while the watchdog"
"This prevents hibernation or suspend.\n"); " is in use\n");
return NOTIFY_BAD; return NOTIFY_BAD;
} }
if (test_bit(VMWDT_RUNNING, &vmwdt_is_open)) { if (test_bit(VMWDT_RUNNING, &vmwdt_is_open)) {
clear_bit(VMWDT_OPEN, &vmwdt_is_open); clear_bit(VMWDT_OPEN, &vmwdt_is_open);
pr_err("The watchdog is running. " pr_err("The system cannot be suspended while the watchdog"
"This prevents hibernation or suspend.\n"); " is running\n");
return NOTIFY_BAD; return NOTIFY_BAD;
} }
return NOTIFY_DONE; return NOTIFY_DONE;
......
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