- Timestamp:
- Feb 5, 2010 4:03:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util-test/http_client.c
r3087 r3089 134 134 PJ_UNUSED_ARG(data); 135 135 136 PJ_LOG(5, (THIS_FILE, "\nData received: %d bytes \n", size));136 PJ_LOG(5, (THIS_FILE, "\nData received: %d bytes", size)); 137 137 if (size > 0) { 138 138 #ifdef VERBOSE … … 161 161 *size = sendsz; 162 162 163 PJ_LOG(5, (THIS_FILE, "\nSending data progress: %d out of %d bytes \n",163 PJ_LOG(5, (THIS_FILE, "\nSending data progress: %d out of %d bytes", 164 164 send_size, total_size)); 165 165 } … … 172 172 173 173 if (status == PJ_ECANCELLED) { 174 PJ_LOG(5, (THIS_FILE, "Request cancelled \n"));174 PJ_LOG(5, (THIS_FILE, "Request cancelled")); 175 175 return; 176 176 } else if (status == PJ_ETIMEDOUT) { 177 PJ_LOG(5, (THIS_FILE, "Request timed out! \n"));177 PJ_LOG(5, (THIS_FILE, "Request timed out!")); 178 178 return; 179 } else if (status != PJ_SUCCESS && status != PJ_EPENDING) {180 PJ_LOG(3, (THIS_FILE, "Error %d \n", status));179 } else if (status != PJ_SUCCESS) { 180 PJ_LOG(3, (THIS_FILE, "Error %d", status)); 181 181 return; 182 182 } 183 PJ_LOG(5, (THIS_FILE, "\nData completed: %d bytes \n", resp->size));183 PJ_LOG(5, (THIS_FILE, "\nData completed: %d bytes", resp->size)); 184 184 if (resp->size > 0 && resp->data) { 185 185 #ifdef VERBOSE … … 198 198 199 199 #ifdef VERBOSE 200 printf("%.*s, % .*s, %.*s\n", STR_PREC(resp->version),201 STR_PREC(resp->status_code), STR_PREC(resp->reason));200 printf("%.*s, %d, %.*s\n", STR_PREC(resp->version), 201 resp->status_code, STR_PREC(resp->reason)); 202 202 for (i = 0; i < resp->headers.count; i++) { 203 203 printf("%.*s : %.*s\n",
Note: See TracChangeset
for help on using the changeset viewer.