commit:     be199c08fada12dc7ccfbf75c8dddba99e185263
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 23 22:15:59 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Jul 23 22:56:47 2020 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=be199c08

defaults/initrd.scripts: Improve logging in *_resume functions

Add device which was tried to resume from to log message.

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/initrd.scripts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 1bf778d..d5a3612 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -2608,7 +2608,7 @@ swsusp_resume() {
                log_msg "Trying to resume using swsusp ..."
                log_msg "COMMAND: 'echo \"${device}\" > /sys/power/resume'"
                echo "${device}" > /sys/power/resume
-               log_msg "System is not resuming, probably because it wasn't 
suspended; Continue normal booting ..."
+               log_msg "System is not resuming from ${REAL_RESUME}, probably 
because it wasn't suspended; Continue normal booting ..."
        fi
 }
 
@@ -2675,7 +2675,7 @@ tuxonice_resume() {
        echo "${REAL_RESUME}" > "${tuxonice_resumedev}"
        log_msg "COMMAND: 'echo > ${tuxonice_do_resume}'"
        echo > "${tuxonice_do_resume}"
-       log_msg "System is not resuming, probably because it wasn't suspended; 
Continue normal booting ..."
+       log_msg "System is not resuming from ${REAL_RESUME}, probably because 
it wasn't suspended; Continue normal booting ..."
 }
 
 find_loop() {

Reply via email to