]> granicus.if.org Git - curl/commitdiff
curl: show size of inhibited data when using -v
authorDaniel Stenberg <daniel@haxx.se>
Mon, 22 Dec 2014 13:17:12 +0000 (14:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 22 Dec 2014 13:21:17 +0000 (14:21 +0100)
To offer some more info and yet it doesn't use more lines.

src/tool_cb_dbg.c

index 010dae3b90ae5db385ee3ef5a2b97af05a7df235..4add67c5515088708e34040bd6c393ada7bc6a23 100644 (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;
         }