diff options
author | Dimitri Staessens <[email protected]> | 2018-05-08 11:56:23 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-05-08 12:04:27 +0200 |
commit | 80c796f5250f8158ec922bdcf2a48dd33717fd60 (patch) | |
tree | 838c1444522cee5288032c1bb70387c51a8cfe45 /src | |
parent | f57748cace780875adb92a1bb61e0b12550e052d (diff) | |
download | ouroboros-80c796f5250f8158ec922bdcf2a48dd33717fd60.tar.gz ouroboros-80c796f5250f8158ec922bdcf2a48dd33717fd60.zip |
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 <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/ipcpd/ipcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |