summaryrefslogtreecommitdiff
path: root/src/threadpool.c
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-08-21 23:16:44 -0700
committersteven-na <noreply.github@stvnc.dev>2026-08-21 23:16:44 -0700
commitfee3f00c6d8a855b4372a0367e0b3e9dcea76699 (patch)
treeab423c6b1f43e3eb53c88a6a55a95d932fbbd19b /src/threadpool.c
parentb844718a1687424b2748608cbb52fb4012417fe5 (diff)
Added printf attr to log funcs
Diffstat (limited to 'src/threadpool.c')
-rw-r--r--src/threadpool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/threadpool.c b/src/threadpool.c
index 152ca66..162fcf2 100644
--- a/src/threadpool.c
+++ b/src/threadpool.c
@@ -1,3 +1,4 @@
+#include <stdint.h>
#if defined(__linux__)
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
@@ -196,7 +197,7 @@ i32 tp_push_job(thread_pool_t *tp, tp_job_proc job, void *args) {
};
#ifndef NLOG_TRACE
- log_trace("Pushing job %p with arg %p onto threadpool.", job, args);
+ log_trace("Pushing job 0x%lx with arg %p onto threadpool.", (uintptr_t)job, args);
#endif /* ifndef NLOG_TRACE */
return ts_deque_enqueue(tp->jobs, &j);