All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tpm: Clarify "auth session active" message
@ 2025-03-10 15:39 Andrew Sayers
  0 siblings, 0 replies; only message in thread
From: Andrew Sayers @ 2025-03-10 15:39 UTC (permalink / raw)
  To: Peter Huewe, Jarkko Sakkinen, Jason Gunthorpe
  Cc: Andrew Sayers, linux-integrity, linux-kernel

Without context, the obvious reading of "auth session is active" is
"auth session successfully activated".  In fact, this message means
"redundant extra attempt to activate auth session".

Signed-off-by: Andrew Sayers <kernel.org@pileofstuff.org>
---
 drivers/char/tpm/tpm2-sessions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/tpm/tpm2-sessions.c b/drivers/char/tpm/tpm2-sessions.c
index 3f89635ba5e8..21589a75ed04 100644
--- a/drivers/char/tpm/tpm2-sessions.c
+++ b/drivers/char/tpm/tpm2-sessions.c
@@ -982,7 +982,7 @@ int tpm2_start_auth_session(struct tpm_chip *chip)
 	int rc;
 
 	if (chip->auth) {
-		dev_dbg_once(&chip->dev, "auth session is active\n");
+		dev_dbg_once(&chip->dev, "auth session already active\n");
 		return 0;
 	}
 
-- 
2.47.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-10 15:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-10 15:39 [PATCH] tpm: Clarify "auth session active" message Andrew Sayers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.