diff options
author | Gunter Knauf <gk@gknw.de> | 2009-09-10 18:36:06 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2009-09-10 18:36:06 +0000 |
commit | 945feafe25b97bdf0d91f49c5452608d66f2e047 (patch) | |
tree | 59c09d0006f34824afcd905463606cec3d598064 | |
parent | 5389ac0ddfca51599d3db67734fe9fe694868fbc (diff) |
use stderr for error output.
-rw-r--r-- | docs/examples/chkspeed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/chkspeed.c b/docs/examples/chkspeed.c index 031eec893..7d2a3da61 100644 --- a/docs/examples/chkspeed.c +++ b/docs/examples/chkspeed.c @@ -150,7 +150,8 @@ int main(int argc, char *argv[]) printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024); } else { - printf("Error while fetching '%s' : %s\n", url, curl_easy_strerror(res)); + fprintf(stderr, "Error while fetching '%s' : %s\n", + url, curl_easy_strerror(res)); } /* cleanup curl stuff */ |