]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ask-password-api: reword some debug messages 15431/head
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Apr 2020 10:01:03 +0000 (12:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Apr 2020 10:04:35 +0000 (12:04 +0200)
Otherwise, seeing this in the log output is confusing since we don't
know what kind of timeout or what kind if key we are adjusting here.

src/shared/ask-password-api.c

index 3a76ea4f67036108d5d12ce833a43470ef81687c..9b74d909b1c62a21150b0bd4f1e8832185d3114a 100644 (file)
@@ -135,12 +135,12 @@ static int add_to_keyring(const char *keyname, AskPasswordFlags flags, char **pa
         if (keyctl(KEYCTL_SET_TIMEOUT,
                    (unsigned long) serial,
                    (unsigned long) DIV_ROUND_UP(KEYRING_TIMEOUT_USEC, USEC_PER_SEC), 0, 0) < 0)
-                log_debug_errno(errno, "Failed to adjust timeout: %m");
+                log_debug_errno(errno, "Failed to adjust kernel keyring key timeout: %m");
 
         /* Tell everyone to check the keyring */
         (void) touch("/run/systemd/ask-password");
 
-        log_debug("Added key to keyring as %" PRIi32 ".", serial);
+        log_debug("Added key to kernel keyring as %" PRIi32 ".", serial);
 
         return 1;
 }
@@ -152,7 +152,7 @@ static int add_to_keyring_and_log(const char *keyname, AskPasswordFlags flags, c
 
         r = add_to_keyring(keyname, flags, passwords);
         if (r < 0)
-                return log_debug_errno(r, "Failed to add password to keyring: %m");
+                return log_debug_errno(r, "Failed to add password to kernel keyring: %m");
 
         return 0;
 }