1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-src_zk__log.c,v 1.1 2015/10/09 13:59:56 fhajny Exp $
Needs to be cast as int.
--- src/c/src/zk_log.c.orig 2014-02-20 10:14:09.000000000 +0000
+++ src/c/src/zk_log.c
@@ -133,7 +133,7 @@ void log_message(ZooLogLevel curLevel,in
#endif
if(pid==0)pid=getpid();
#ifndef THREADED
- fprintf(LOGSTREAM, "%s:%d:%s@%s@%d: %s\n", time_now(get_time_buffer()),pid,
+ fprintf(LOGSTREAM, "%s:%d:%s@%s@%d: %s\n", time_now(get_time_buffer()),(int)pid,
dbgLevelStr[curLevel],funcName,line,message);
#else
#ifdef WIN32
|