From: Amos Jeffries Date: Fri, 31 May 2013 09:29:21 +0000 (-0600) Subject: Polish: more debug info from squidclient X-Git-Tag: SQUID_3_4_0_1~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b65ab6e8ca0ba61733e2e2964ba4d4e80fb8317b;p=thirdparty%2Fsquid.git Polish: more debug info from squidclient --- diff --git a/tools/squidclient.cc b/tools/squidclient.cc index 1c75587051..5f06555dcf 100644 --- a/tools/squidclient.cc +++ b/tools/squidclient.cc @@ -628,6 +628,7 @@ main(int argc, char *argv[]) } /* Send the HTTP request */ + fprintf(stderr, "Sending HTTP request ... "); bytesWritten = mywrite(conn, msg, strlen(msg)); if (bytesWritten < 0) { @@ -637,8 +638,10 @@ main(int argc, char *argv[]) fprintf(stderr, "client: ERROR: Cannot send request?: %s\n", msg); exit(1); } + fprintf(stderr, "done.\n"); if (put_file) { + fprintf(stderr, "Sending HTTP request payload ... "); int x; lseek(put_fd, 0, SEEK_SET); while ((x = read(put_fd, buf, sizeof(buf))) > 0) { @@ -653,6 +656,8 @@ main(int argc, char *argv[]) if (x != 0) fprintf(stderr, "client: ERROR: Cannot send file.\n"); + else + fprintf(stderr, "done.\n"); } /* Read the data */