summaryrefslogtreecommitdiff
path: root/net/spnetkit/files/patch-spnklog.cpp
blob: e6ca7380dda487b5531befa082ab21869898ffdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- spnklog.cpp.orig	2011-06-21 09:28:36.000000000 +0800
+++ spnklog.cpp	2011-06-21 09:29:24.000000000 +0800
@@ -168,7 +168,7 @@ void SP_NKLog :: log( int pri, const cha
 		snprintf( logText, sizeof( logText ),
 			"%04i-%02i-%02i %02i:%02i:%02i #%i ",
 			1900 + tmTime.tm_year, tmTime.tm_mon+1, tmTime.tm_mday,
-			tmTime.tm_hour, tmTime.tm_min, tmTime.tm_sec, (int)spnk_threadid() );
+			tmTime.tm_hour, tmTime.tm_min, tmTime.tm_sec, (long)spnk_threadid() );
 	}
 
 	if( mIsLogPriName ) {