security/tpm/tss/tcg-1.2/tss.c: Use __func__
Change-Id: I51e7111b17274b8951925d1c13e2f1386778b93a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49557 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Christian Walter <christian.walter@9elements.com>
This commit is contained in:
parent
103c1205e7
commit
02d4318ae2
|
@ -208,7 +208,7 @@ uint32_t tlcl_write(uint32_t index, const void *data, uint32_t length)
|
||||||
const int total_length =
|
const int total_length =
|
||||||
kTpmRequestHeaderLength + kWriteInfoLength + 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));
|
memcpy(&cmd, &tpm_nv_write_cmd, sizeof(cmd));
|
||||||
assert(total_length <= TPM_LARGE_ENOUGH_COMMAND_SIZE);
|
assert(total_length <= TPM_LARGE_ENOUGH_COMMAND_SIZE);
|
||||||
set_tpm_command_size(cmd.buffer, total_length);
|
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_length;
|
||||||
uint32_t result;
|
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));
|
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.index, index);
|
||||||
to_tpm_uint32(cmd.buffer + tpm_nv_read_cmd.length, length);
|
to_tpm_uint32(cmd.buffer + tpm_nv_read_cmd.length, length);
|
||||||
|
|
Loading…
Reference in New Issue