From 40107aa6dac533695d1784f66f79683caaf6d3c8 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 18 Feb 2013 13:19:24 +0400 Subject: [PATCH] Use proper format specifier --- zend_accelerator_debug.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zend_accelerator_debug.c b/zend_accelerator_debug.c index 8b2bd6241c..1234c0fc93 100644 --- a/zend_accelerator_debug.c +++ b/zend_accelerator_debug.c @@ -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: -- 2.40.0