From cbc0f131c2e3089c70ac2e8daf5228a42ebe7e30 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Sat, 31 Mar 2018 14:51:55 -0400 Subject: docs: fix CURLINFO_*_T examples use of CURL_FORMAT_CURL_OFF_T - Put a percent sign before each CURL_FORMAT_CURL_OFF_T in printf. For example "%" CURL_FORMAT_CURL_OFF_T becomes %lld or similar. Bug: https://curl.haxx.se/mail/lib-2018-03/0140.html Reported-by: David L. --- docs/libcurl/opts/CURLINFO_SPEED_UPLOAD_T.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/libcurl/opts/CURLINFO_SPEED_UPLOAD_T.3') diff --git a/docs/libcurl/opts/CURLINFO_SPEED_UPLOAD_T.3 b/docs/libcurl/opts/CURLINFO_SPEED_UPLOAD_T.3 index 36389b34b..873fde6fe 100644 --- a/docs/libcurl/opts/CURLINFO_SPEED_UPLOAD_T.3 +++ b/docs/libcurl/opts/CURLINFO_SPEED_UPLOAD_T.3 @@ -44,7 +44,7 @@ if(curl) { curl_off_t speed; res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD_T, &speed); if(!res) { - printf("Upload speed " CURL_FORMAT_CURL_OFF_T " bytes/sec\\n", ul); + printf("Upload speed %" CURL_FORMAT_CURL_OFF_T " bytes/sec\\n", speed); } } } -- cgit v1.2.3