diff mbox series

tpm: Clarify "auth session active" message

Message ID 20250310153942.15038-1-kernel.org@pileofstuff.org (mailing list archive)
State New
Headers show
Series tpm: Clarify "auth session active" message | expand

Commit Message

Andrew Sayers March 10, 2025, 3:39 p.m. UTC
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 mbox series

Patch

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;
 	}