diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2025-11-10 09:43:30 +0100 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2025-11-21 08:17:59 +0100 |
| commit | 7dd1cd18373a6c64ecea8caf231e10a00764f705 (patch) | |
| tree | 2d630f9314ebe6660200996d7919aba4be596ef4 /src/lib/tpm.c | |
| parent | c97f9243e4843a446b16789a9ebcb07b3787a505 (diff) | |
| download | ouroboros-7dd1cd18373a6c64ecea8caf231e10a00764f705.tar.gz ouroboros-7dd1cd18373a6c64ecea8caf231e10a00764f705.zip | |
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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/tpm.c')
| -rw-r--r-- | src/lib/tpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
