From ac26b1d12faf56a5889fb6dea7dba12e42693a1a Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Mon, 14 Oct 2019 20:50:47 +0800 Subject: [PATCH] fastdfs_client.c: use log_try_init --- php_client/fastdfs_client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/php_client/fastdfs_client.c b/php_client/fastdfs_client.c index 227c9a6..2e435d0 100644 --- a/php_client/fastdfs_client.c +++ b/php_client/fastdfs_client.c @@ -1519,9 +1519,9 @@ static void php_fdfs_tracker_delete_storage_impl( \ if (group_name_len == 0 || storage_ip_len == 0) { - logError("file: "__FILE__", line: %d, " \ - "group name length: %d or storage ip length: %d = 0!",\ - __LINE__, group_name_len, storage_ip_len); + logError("file: "__FILE__", line: %d, " + "group name length: %d or storage ip length: %d = 0!", + __LINE__, (int)group_name_len, (int)storage_ip_len); pContext->err_no = EINVAL; RETURN_BOOL(false); } @@ -7483,7 +7483,7 @@ PHP_MINIT_FUNCTION(fastdfs_client) { zend_class_entry ce; - log_init(); + log_try_init(); if (load_config_files() != 0) { return FAILURE;