Skip to content

Commit

Permalink
improved debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
fangfufu committed May 3, 2024
1 parent f92fe42 commit 96a7c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 96a7c24

Please sign in to comment.