]> granicus.if.org Git - php/commitdiff
Use proper format specifier
authorDmitry Stogov <dmitry@zend.com>
Mon, 18 Feb 2013 09:19:24 +0000 (13:19 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 18 Feb 2013 09:19:24 +0000 (13:19 +0400)
zend_accelerator_debug.c

index 8b2bd6241c839701e8751039a4e9bf63950c9f61..1234c0fc93ca4ca1f2c5e9740ea4452d942c9c99 100644 (file)
@@ -56,13 +56,11 @@ void zend_accel_error(int type, const char *format, ...)
                }
        }
 
-    fprintf(fLog, "%s (%d): ", time_string,
 #ifdef ZTS
-               tsrm_thread_id()
+    fprintf(fLog, "%s (%lu): ", time_string, (unsigned long)tsrm_thread_id());
 #else
-               getpid()
+    fprintf(fLog, "%s (%d): ", time_string, getpid());
 #endif
-               );
 
        switch (type) {
                case ACCEL_LOG_FATAL: