From 02d4318ae2002525d8daa60ba1599f6208cba2c1 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sat, 16 Jan 2021 17:31:29 +0100 Subject: security/tpm/tss/tcg-1.2/tss.c: Use __func__ Change-Id: I51e7111b17274b8951925d1c13e2f1386778b93a Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/49557 Tested-by: build bot (Jenkins) Reviewed-by: Christian Walter --- src/security/tpm/tss/tcg-1.2/tss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/security') diff --git a/src/security/tpm/tss/tcg-1.2/tss.c b/src/security/tpm/tss/tcg-1.2/tss.c index a3d0235365..8b7778ddb2 100644 --- a/src/security/tpm/tss/tcg-1.2/tss.c +++ b/src/security/tpm/tss/tcg-1.2/tss.c @@ -208,7 +208,7 @@ uint32_t tlcl_write(uint32_t index, const void *data, uint32_t length) const int total_length = kTpmRequestHeaderLength + kWriteInfoLength + length; - VBDEBUG("TPM: tlcl_write(0x%x, %d)\n", index, length); + VBDEBUG("TPM: %s(0x%x, %d)\n", __func__, index, length); memcpy(&cmd, &tpm_nv_write_cmd, sizeof(cmd)); assert(total_length <= TPM_LARGE_ENOUGH_COMMAND_SIZE); set_tpm_command_size(cmd.buffer, total_length); @@ -227,7 +227,7 @@ uint32_t tlcl_read(uint32_t index, void *data, uint32_t length) uint32_t result_length; uint32_t result; - VBDEBUG("TPM: tlcl_read(0x%x, %d)\n", index, length); + VBDEBUG("TPM: %s(0x%x, %d)\n", __func__, index, length); memcpy(&cmd, &tpm_nv_read_cmd, sizeof(cmd)); to_tpm_uint32(cmd.buffer + tpm_nv_read_cmd.index, index); to_tpm_uint32(cmd.buffer + tpm_nv_read_cmd.length, length); -- cgit v1.2.3