From 4113ab09c8451a877383df97377a271dd35e0c24 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 20 Apr 2023 10:48:19 +0800 Subject: [PATCH] Fixed a wrong parament name in printf --- .../bin_file_download_through_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bin_file_download_through_module/bin_file_download_through_module.c b/examples/bin_file_download_through_module/bin_file_download_through_module.c index 18a75b8c..58228046 100644 --- a/examples/bin_file_download_through_module/bin_file_download_through_module.c +++ b/examples/bin_file_download_through_module/bin_file_download_through_module.c @@ -148,7 +148,7 @@ static int ota_http_body_read(int fd, int file_len, unsigned char *buf, size_t b #define MIN(a, b) ((a) < (b) ? (a) : (b)) - printf("file_len is %d, remain_len = %d\r\n", file_len, read_len); + printf("file_len is %d, remain_len = %d\r\n", file_len, remain_len); while (remain_len > 0) { read_len = MIN(remain_len, buf_len);