From 96a7c248d3abb62553389894896d8c60c5656fd2 Mon Sep 17 00:00:00 2001 From: Fufu Fang Date: Fri, 3 May 2024 05:58:40 +0100 Subject: [PATCH] improved debug message --- src/link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/link.c b/src/link.c index fe82ffc..92fae5f 100644 --- a/src/link.c +++ b/src/link.c @@ -1074,8 +1074,8 @@ long Link_download(Link *link, char *output_buf, size_t req_size, off_t offset) header.data = NULL; if (offset + req_size > link->content_length) { - lprintf(error, - "requested size too large, req_size: %lu, recv: %ld, content-length: %ld\n", + lprintf(info, + "requested size too larger than remaining size, req_size: %lu, recv: %ld, content-length: %ld\n", req_size, recv, link->content_length); req_size = link->content_length - offset; }