summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cr50/tpm2/aes.c3
-rw-r--r--chip/g/dcrypto/dcrypto_bn.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/board/cr50/tpm2/aes.c b/board/cr50/tpm2/aes.c
index 7223c71fc0..cc4d83d7e7 100644
--- a/board/cr50/tpm2/aes.c
+++ b/board/cr50/tpm2/aes.c
@@ -443,8 +443,7 @@ static void aes_command_handler(void *cmd_body,
&ctx, out_local.b, sizeof(out_local.b),
data_local.b, data_len);
if (count < 0) {
- CPRINTF(
- "%s: gcm encrypt failed\n");
+ CPRINTF("%s: gcm encrypt failed\n", __func__);
break;
}
total = count;
diff --git a/chip/g/dcrypto/dcrypto_bn.c b/chip/g/dcrypto/dcrypto_bn.c
index ef90b47463..b8f8fef4f4 100644
--- a/chip/g/dcrypto/dcrypto_bn.c
+++ b/chip/g/dcrypto/dcrypto_bn.c
@@ -1485,7 +1485,7 @@ static int command_genp(int argc, char **argv)
if (result == EC_SUCCESS) {
ccprintf("prime: %ph (lsb first)\n",
- HEX_BUF(prime_buf, sizeof(prime_buf));
+ HEX_BUF(prime_buf, sizeof(prime_buf)));
ccprintf("μs : %llu\n",
(long long)(genp_end.val - genp_start.val));
}