]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hibernate-resume-generator: downgrade 'noresume' log message
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Jul 2023 09:47:19 +0000 (11:47 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 4 Jul 2023 11:30:33 +0000 (12:30 +0100)
This log message is shown pretty regular at boot in various scenarios
(such as CI builds), and it's not a reason for any concern, it's just the
immediate effect of explicit configuration. Hence let's downgrade from
LOG_NOTICE to LOG_INFO so that it is still usually in the boot output,
but not particularly highlighted, since there's really no reason to.

src/hibernate-resume/hibernate-resume-generator.c

index fac57d38c4e490e170b5ba209be07bee33cb9830..5ace8543f0287b4a33bc6a2a3ae45cad53575e99 100644 (file)
@@ -250,7 +250,7 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
 
         /* Don't even consider resuming outside of initrd. */
         if (!in_initrd()) {
-                log_debug("Not running in an initrd, quitting.");
+                log_debug("Not running in an initrd, exiting.");
                 return 0;
         }
 
@@ -259,7 +259,7 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
                 log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");
 
         if (arg_noresume) {
-                log_notice("Found \"noresume\" on the kernel command line, quitting.");
+                log_info("Found \"noresume\" on the kernel command line, exiting.");
                 return 0;
         }