From 80c796f5250f8158ec922bdcf2a48dd33717fd60 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 8 May 2018 11:56:23 +0200 Subject: ipcpd: Fix parameter in debug log The cpu was a size_t but printed as an unsigned long, giving compilation errors on 32 bit machines. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/ipcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index 8dc7751a..0b5ddf11 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -802,10 +802,10 @@ void ipcp_lock_to_core(void) CPU_SET(cpu, &cpus); if (pthread_setaffinity_np(pthread_self(), sizeof(cpus), &cpus)) - log_warn("Failed to lock thread %lu to CPU %lu/%lu.", + log_warn("Failed to lock thread %lu to CPU %zu/%lu.", pthread_self(), cpu, NPROC); else - log_dbg("Locked thread %lu to CPU %lu/%lu.", + log_dbg("Locked thread %lu to CPU %zu/%lu.", pthread_self(), cpu, NPROC); #endif } -- cgit v1.2.3