diff options
| author | 彭宣正 <[email protected]> | 2021-11-10 16:57:44 +0800 |
|---|---|---|
| committer | 彭宣正 <[email protected]> | 2021-11-10 16:57:44 +0800 |
| commit | ac53e5e2029cc31c819c0fa77e17959bf9dd1b9f (patch) | |
| tree | d8a80486a0b467b9a995a756331e7364b720717c /src/hos_client.cpp | |
| parent | 31c56eda0ad70c44eaf7585e39863eae76bb7e73 (diff) | |
🌈 style(hos_client.cpp): 修改格式化内容
Diffstat (limited to 'src/hos_client.cpp')
| -rw-r--r-- | src/hos_client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hos_client.cpp b/src/hos_client.cpp index 33e15e50..5fea17bc 100644 --- a/src/hos_client.cpp +++ b/src/hos_client.cpp @@ -448,7 +448,7 @@ static void hos_client_create() //初始化 char endpoint[128]; - snprintf(endpoint, 128, "http://%s:%d/hos/", hos_conf->ip, hos_conf->port); + snprintf(endpoint, 128, "http://%s:%u/hos/", hos_conf->ip, hos_conf->port); g_client_config->endpointOverride.append(endpoint); g_client_config->verifySSL = false; g_client_config->enableEndpointDiscovery = true; @@ -543,7 +543,7 @@ static int hos_putobject_async(Aws::S3::Model::PutObjectRequest& request, size_t //设置回调函数 std::shared_ptr<Aws::Client::AsyncCallerContext> context = Aws::MakeShared<Aws::Client::AsyncCallerContext>(""); - sprintf(buf, "%lu %lu %lu", thread_id, (long)*fd, stream_len); + sprintf(buf, "%lu %lu %lu", thread_id, (size_t)*fd, stream_len); context->SetUUID(buf); if (hos_conf->max_request_num && hos_conf->max_request_context && @@ -683,7 +683,7 @@ hos_instance hos_init_instance(const char *conf_path, const char *module, size_t { g_hos_instance.error_code = HOS_PARAMETER_ERROR; snprintf(g_hos_instance.error_message, HOS_ERROR_MESSAGE_SIZE, - "param error:conf_path:%s, module:%s, thread_num:%lu", conf_path, module, thread_num); + "param error:conf_path:%s, module:%s, thread_num:%lu", (conf_path?conf_path:"NULL"), (module?(module:"NULL")), thread_num); return NULL; } |
