Skip to content

Commit

Permalink
refactor(curlconnection): improve log print
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Aug 14, 2020
1 parent 3c720e9 commit 6981c09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/data_source/curl/CURLConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down
3 changes: 2 additions & 1 deletion framework/utils/frame_work_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

#include <af_config.h>

#include <stdint.h>
#include "CicadaType.h"
#include <inttypes.h>
#include <stdint.h>

#define AF_LOG_LEVEL_NONE 0
#define AF_LOG_LEVEL_FATAL 8
Expand Down

0 comments on commit 6981c09

Please sign in to comment.