]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
printf arguments more portable.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Dec 2016 10:52:02 +0000 (10:52 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Dec 2016 10:52:02 +0000 (10:52 +0000)
git-svn-id: file:///svn/unbound/trunk@3960 be551aaa-1e26-0410-a405-d3ace91eadb9

util/locks.h

index f9a9eed9eb4fbece1048f6ef7d819dcdd9a618cd..6f6c13e58b16fe53229c1289573b1ca08b80c85d 100644 (file)
@@ -163,7 +163,7 @@ Wrapper for set up thread stack size */
                LOCKRET(pthread_attr_setstacksize(&attr, stackrequired)); \
                LOCKRET(pthread_create(thr, &attr, func, arg)); \
                LOCKRET(pthread_attr_getstacksize(&attr, &stacksize)); \
-               verbose(VERB_ALGO, "Thread stack size set to %zu", stacksize); \
+               verbose(VERB_ALGO, "Thread stack size set to %u", (unsigned)stacksize); \
        } else {LOCKRET(pthread_create(thr, NULL, func, arg));} \
        } while(0)
 /** Use wrapper for set thread stack size on attributes. */