Skip to contentSkip to conversation

tpm: Clarify "auth session active" message

PATCH New Andrew Sayers 1 participant 1 message Mar 10, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: Clarify "auth session active" message

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".

---
 drivers/char/tpm/tpm2-sessions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm2-sessions.c +1 -1
index 3f89635ba5e8..21589a75ed04 100644
@@ -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;
 	}
 
Signature · 1 line
2.47.2