From 7dd1cd18373a6c64ecea8caf231e10a00764f705 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 10 Nov 2025 09:43:30 +0100 Subject: lib: Fix buffer in auth_test and tpm log The string buffer in auth_test was one byte too short. The log line for the thread id in the tpm thread debug output needs type conversion. The build fails because of this on OS X. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/tpm.c') diff --git a/src/lib/tpm.c b/src/lib/tpm.c index 7a17ef6b..ad5c1068 100644 --- a/src/lib/tpm.c +++ b/src/lib/tpm.c @@ -100,7 +100,7 @@ static void tpm_debug_thread(struct pthr_el * e) if (BETWEEN(TPM_DEBUG_REPORT_INTERVAL, 0, intv)) { log_dbg("Thread %d:%lx running for %ld s.\n", - getpid(),e->thr, diff); + getpid(), (unsigned long) e->thr, diff); e->last = now; } -- cgit v1.2.3