From 6981c09806a631fbf17cfa89063d8995eb0656a5 Mon Sep 17 00:00:00 2001 From: pingkai Date: Fri, 14 Aug 2020 11:07:03 +0800 Subject: [PATCH] refactor(curlconnection): improve log print Signed-off-by: pingkai --- framework/data_source/curl/CURLConnection.cpp | 2 +- framework/utils/frame_work_log.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/data_source/curl/CURLConnection.cpp b/framework/data_source/curl/CURLConnection.cpp index f0e0ab27c..a71abafe4 100644 --- a/framework/data_source/curl/CURLConnection.cpp +++ b/framework/data_source/curl/CURLConnection.cpp @@ -685,7 +685,7 @@ int CURLConnection::short_seek(int64_t off) return ret; } - AF_LOGI("read buffer size %d need is %d\n", RingBuffergetMaxReadSize(pRbuf), delta - len); + AF_LOGI("read buffer size %" PRIu32 " need is %d\n", RingBuffergetMaxReadSize(pRbuf), (int) (delta - len)); if (!RingBufferSkipBytes(pRbuf, (int) (delta - len))) { AF_LOGI("%s - Failed to skip to position after having filled buffer", __FUNCTION__); diff --git a/framework/utils/frame_work_log.h b/framework/utils/frame_work_log.h index 24fd63d46..d7d899960 100644 --- a/framework/utils/frame_work_log.h +++ b/framework/utils/frame_work_log.h @@ -7,8 +7,9 @@ #include -#include #include "CicadaType.h" +#include +#include #define AF_LOG_LEVEL_NONE 0 #define AF_LOG_LEVEL_FATAL 8