]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup-tokens: fix typo in tpm2 token dump output
authorAnssi Hannula <anssi.hannula@bitwise.fi>
Thu, 9 Sep 2021 11:58:13 +0000 (14:58 +0300)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 9 Sep 2021 16:54:41 +0000 (17:54 +0100)
cryptsetup_token_dump() gets called when the user calls
"cryptsetup luksDump"  for a volume and it prints the token-specific
data.

The tpm2 cryptsetup_token_dump() function misspells tpm2 as tmp2 on two
lines of its output.

Fix that.

src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-tpm2.c

index 2daa55c457ed2fb0aee7d66707069bc42904d823..0c9d566e0d6cc13ed1aff25e0132f1d19c22199c 100644 (file)
@@ -167,8 +167,8 @@ _public_ void cryptsetup_token_dump(
 
         crypt_log(cd, "\ttpm2-pcrs:  %s\n", strna(pcrs_str));
         crypt_log(cd, "\ttpm2-bank:  %s\n", strna(tpm2_pcr_bank_to_string(pcr_bank)));
-        crypt_log(cd, "\ttmp2-blob:  %s\n", blob_str);
-        crypt_log(cd, "\ttmp2-policy-hash:" CRYPT_DUMP_LINE_SEP "%s\n", policy_hash_str);
+        crypt_log(cd, "\ttpm2-blob:  %s\n", blob_str);
+        crypt_log(cd, "\ttpm2-policy-hash:" CRYPT_DUMP_LINE_SEP "%s\n", policy_hash_str);
 }
 
 /*