1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

curl: show size of inhibited data when using -v

To offer some more info and yet it doesn't use more lines.
This commit is contained in:
Daniel Stenberg 2014-12-22 14:17:12 +01:00
parent 6dae798824
commit d9166028e5

View File

@ -145,7 +145,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type,
if(!config->isatty || ((output != stderr) && (output != stdout))) {
if(!newl)
fprintf(output, "%s%s ", timebuf, s_infotype[type]);
fprintf(output, "[data not shown]\n");
fprintf(output, "[%zd bytes data]\n", size);
newl = FALSE;
traced_data = TRUE;
}