com php-src: Use proper format specifier: zend_accelerator_ debug.c
| From: | Dmitry Stogov | Date: | Mon, 18 Feb 2013 09:19:24 +0000 |
| Subject: | com php-src: Use proper format specifier: zend_accelerator_ debug.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71525@lists.php.net to get a copy of this message | ||
Commit: 40107aa6dac533695d1784f66f79683caaf6d3c8
Author: Dmitry Stogov <dmitry@zend.com> Mon, 18 Feb 2013 13:19:24 +0400
Parents: 53d4abb16c78a7c35c7df0d7e2f8c51baa01ca8f
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=40107aa6dac533695d1784f66f79683caaf6d3c8
Log:
Use proper format specifier
Changed paths:
M zend_accelerator_debug.c
Diff:
diff --git a/zend_accelerator_debug.c b/zend_accelerator_debug.c
index 8b2bd62..1234c0f 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: