From c2e21b9ffb5f0d7b034e7a923cc515fb39d89a5b Mon Sep 17 00:00:00 2001
From: "Alfred E. Heggestad" <alfred.heggestad@gmail.com>
Date: Tue, 5 Sep 2023 12:37:24 +0200
Subject: [PATCH] main: fix thrd_t format

---
 src/main/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/main.c b/src/main/main.c
index 6c7f80d33..7f089a4d3 100644
--- a/src/main/main.c
+++ b/src/main/main.c
@@ -1329,8 +1329,8 @@ int re_thread_check(bool debug)
 		DEBUG_WARNING(
 			"thread check: called from a NON-RE thread without "
 			"thread_enter()! [te=%d, eq=%d]\n", te, eq);
-		fprintf(stderr, ".... tid=%lu\n", re->tid);
-		fprintf(stderr, ".... cur=%lu\n", cur);
+		fprintf(stderr, ".... tid=%zu\n", (size_t)re->tid);
+		fprintf(stderr, ".... cur=%zu\n", (size_t)cur);
 
 #if DEBUG_LEVEL > 5
 		struct btrace trace;