Changeset 2060
- Timestamp:
- 01/18/2008 03:19:01 PM (4 months ago)
- Files:
-
- trunk/src/connections.c (modified) (1 diff)
- trunk/src/http_req.c (modified) (1 diff)
- trunk/src/mod_chunked.c (modified) (1 diff)
- trunk/src/mod_compress.c (modified) (3 diffs)
- trunk/src/mod_deflate.c (modified) (7 diffs)
- trunk/src/mod_flv_streaming.c (modified) (1 diff)
- trunk/src/mod_proxy_backend_ajp13.c (modified) (1 diff)
- trunk/src/mod_proxy_backend_fastcgi.c (modified) (1 diff)
- trunk/src/mod_proxy_core.c (modified) (3 diffs)
- trunk/src/mod_secure_download.c (modified) (1 diff)
- trunk/src/mod_uploadprogress.c (modified) (1 diff)
- trunk/src/network_gthread_aio.c (modified) (2 diffs)
- trunk/src/network_gthread_sendfile.c (modified) (1 diff)
- trunk/src/network_posix_aio.c (modified) (1 diff)
- trunk/src/server.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/connections.c
r2047 r2060 1339 1339 1340 1340 if (cq_len > 0) { 1341 TRACE("filter[%d] is not empty: %lld (report me)", f->id );1341 TRACE("filter[%d] is not empty: %lld (report me)", f->id, cq_len); 1342 1342 } 1343 1343 } trunk/src/http_req.c
r2011 r2060 185 185 t->offset == t->lookup_offset + 1) { 186 186 187 ERROR("invalid char (%d) at pos: %d", t->c, t->offset);187 ERROR("invalid char (%d) at pos: %d", c, t->offset); 188 188 return PARSER_ERROR; 189 189 } trunk/src/mod_chunked.c
r2033 r2060 203 203 } 204 204 if(con->response.content_length >= 0) { 205 if (p->conf.debug > 0) TRACE("response content length known, disabling chunked encoding. len=% d", con->response.content_length);205 if (p->conf.debug > 0) TRACE("response content length known, disabling chunked encoding. len=%ju", con->response.content_length); 206 206 use_chunked = 0; 207 207 } else if (con->request.http_method != HTTP_METHOD_HEAD) { trunk/src/mod_compress.c
r1800 r2060 650 650 /* don't compress files that are too large as we need to much time to handle them */ 651 651 if (max_fsize && (sce->st.st_size >> 10) > max_fsize) { 652 if (con->conf.log_request_handling) TRACE("file '%s' is too large: % lu",652 if (con->conf.log_request_handling) TRACE("file '%s' is too large: %ju", 653 653 BUF_STR(con->physical.path), 654 654 sce->st.st_size); … … 659 659 /* compressing the file might lead to larger files instead */ 660 660 if (sce->st.st_size < 128) { 661 if (con->conf.log_request_handling) TRACE("file '%s' is too small: % lu",661 if (con->conf.log_request_handling) TRACE("file '%s' is too small: %ju", 662 662 BUF_STR(con->physical.path), 663 663 sce->st.st_size); … … 693 693 694 694 if (con->send->first == NULL) { 695 if (con->conf.log_request_handling) TRACE("we can't compress streams: ->first = %p", con->send->first);695 if (con->conf.log_request_handling) TRACE("we can't compress streams: ->first = %p", NULL); 696 696 return HANDLER_GO_ON; 697 697 } 698 698 699 699 if (con->send->first->next != NULL) { 700 if (con->conf.log_request_handling) TRACE("we can't compress streams: ->first->next = %p", con->send->first->next);700 if (con->conf.log_request_handling) TRACE("we can't compress streams: ->first->next = %p", NULL); 701 701 return HANDLER_GO_ON; 702 702 } trunk/src/mod_deflate.c
r2055 r2060 880 880 if (mod_deflate_compress(srv, con, hctx, 881 881 (unsigned char *)start + (abs_offset - c->file.mmap.offset), toSend) < 0) { 882 ERROR(" compress failed.", 0);882 ERROR("%s", "compress failed."); 883 883 return -1; 884 884 } … … 953 953 954 954 if (mod_deflate_compress(srv, con, hctx, (unsigned char *)(c->mem->ptr + c->offset), we_want) < 0) { 955 ERROR(" compress failed.", 0);955 ERROR("%s", "compress failed."); 956 956 return HANDLER_ERROR; 957 957 } … … 967 967 968 968 if ((we_want = mod_deflate_file_chunk(srv, con, hctx, c, we_want)) < 0) { 969 ERROR(" compress file chunk failed.", 0);969 ERROR("%s", "compress file chunk failed."); 970 970 return HANDLER_ERROR; 971 971 } … … 1019 1019 1020 1020 if (rc < 0) { 1021 ERROR(" flush error", 0);1021 ERROR("%s", "flush error"); 1022 1022 } 1023 1023 … … 1125 1125 if(!p->conf.enabled) { 1126 1126 if(p->conf.debug) { 1127 TRACE(" compression disabled.", 0);1127 TRACE("%s", "compression disabled."); 1128 1128 } 1129 1129 return HANDLER_GO_ON; … … 1174 1174 fl = filter_chain_get_filter(con->send_filters, p->id); 1175 1175 if (!fl) { 1176 if(p->conf.debug) TRACE(" add deflate filter to filter chain", 0);1176 if(p->conf.debug) TRACE("%s", "add deflate filter to filter chain"); 1177 1177 fl = filter_chain_create_filter(con->send_filters, p->id); 1178 1178 } … … 1213 1213 1214 1214 if(p->conf.debug) { 1215 TRACE("mime-type: ", BUF_STR(mimetype->value));1215 TRACE("mime-type: %s", BUF_STR(mimetype->value)); 1216 1216 } 1217 1217 if (strncmp(mimetype->value->ptr, ds->value->ptr, mimetype->value->used-1) == 0) { trunk/src/mod_flv_streaming.c
r1771 r2060 213 213 stat_cache_entry *sce = NULL; 214 214 buffer *b; 215 intstart;215 long start; 216 216 char *err = NULL; 217 217 /* if there is a start=[0-9]+ in the header use it as start, trunk/src/mod_proxy_backend_ajp13.c
r2001 r2060 303 303 if (p == NULL) { 304 304 if ((data->buf->used - data->offset) <= (len + 1)) { 305 ERROR("we have % d bytes, but a partial-string wants %d. no way", (data->buf->used - data->offset), len);305 ERROR("we have %ju bytes, but a partial-string wants %zu. no way", (data->buf->used - data->offset), len); 306 306 return -1; 307 307 } trunk/src/mod_proxy_backend_fastcgi.c
r1986 r2060 480 480 out->is_closed = 1; 481 481 482 TRACE("% ld / %ld-> %d",482 TRACE("%ju / %ju -> %d", 483 483 in->bytes_in, in->bytes_out, 484 484 in->is_closed); trunk/src/mod_proxy_core.c
r2033 r2060 1005 1005 */ 1006 1006 1007 ERROR("the session ctx is NULL: %p, expect a crash", sess); 1007 ERROR("the session ctx is NULL: %p, expect a crash", (void*) sess); 1008 // FIXME: do not dereference an known NULL ??? 1008 1009 } 1009 1010 … … 1445 1446 TRACE("connecting to address %s (%p) failed, disabling for 60 sec", 1446 1447 BUF_STR(sess->proxy_con->address->name), 1447 sess->proxy_con->address);1448 (void*) sess->proxy_con->address); 1448 1449 COUNTER_INC(sess->proxy_backend->requests_failed); 1449 1450 … … 1475 1476 case PROXY_CONNECTION_STATE_CONNECTING: 1476 1477 if (0 != getsockopt(sess->proxy_con->sock->fd, SOL_SOCKET, SO_ERROR, &socket_error, &socket_error_len)) { 1477 ERROR("getsockopt failed: ", strerror(errno));1478 ERROR("getsockopt failed: %s", strerror(errno)); 1478 1479 1479 1480 return HANDLER_ERROR; trunk/src/mod_secure_download.c
r1771 r2060 279 279 srv->cur_ts - ts < -p->conf.timeout) { 280 280 if (con->conf.log_request_handling) { 281 TRACE("timestamp is too old: % d, timeout: %d", ts, p->conf.timeout);281 TRACE("timestamp is too old: %ld, timeout: %d", ts, p->conf.timeout); 282 282 } 283 283 trunk/src/mod_uploadprogress.c
r1896 r2060 535 535 536 536 if (p->conf.debug) { 537 TRACE("response_header: con=%p, http_method=%d, http_status=%d", con,537 TRACE("response_header: con=%p, http_method=%d, http_status=%d", (void*) con, 538 538 con->request.http_method, con->http_status); 539 539 } trunk/src/network_gthread_aio.c
r1917 r2060 66 66 if (!srv->srvconf.log_timing) return; 67 67 68 TRACE("write-start: % d.%06d "69 "read-queue-wait: % d ms "70 "read-time: % d ms "71 "write-time: % d ms ",68 TRACE("write-start: %ld.%06ld " 69 "read-queue-wait: %ld ms " 70 "read-time: %ld ms " 71 "write-time: %ld ms ", 72 72 con->timestamps[TIME_SEND_WRITE_START].tv_sec, 73 73 con->timestamps[TIME_SEND_WRITE_START].tv_usec, … … 386 386 return NETWORK_STATUS_FATAL_ERROR; 387 387 } else if (r != c->file.copy.length) { 388 ERROR("read() returned %d instead of % d", r, c->file.copy.length);388 ERROR("read() returned %d instead of %ju", r, c->file.copy.length); 389 389 390 390 return NETWORK_STATUS_FATAL_ERROR; trunk/src/network_gthread_sendfile.c
r1758 r2060 57 57 if (!srv->srvconf.log_timing) return; 58 58 59 TRACE("write-start: % d.%06d "60 "read-queue-wait: % d ms "61 "read-time: % d ms "62 "write-time: % d ms ",59 TRACE("write-start: %ld.%06ld " 60 "read-queue-wait: %ld ms " 61 "read-time: %ld ms " 62 "write-time: %ld ms ", 63 63 con->timestamps[TIME_SEND_WRITE_START].tv_sec, 64 64 con->timestamps[TIME_SEND_WRITE_START].tv_usec, trunk/src/network_posix_aio.c
r1760 r2060 351 351 352 352 if (r != c->file.copy.length) { 353 ERROR("read() returned %d instead of % d", r, c->file.copy.length);353 ERROR("read() returned %d instead of %ju", r, c->file.copy.length); 354 354 355 355 return NETWORK_STATUS_FATAL_ERROR; trunk/src/server.c
r2048 r2060 985 985 986 986 } else if (n < 0 && poll_errno != EINTR) { 987 ERROR("fdevent_poll failed: ", strerror(poll_errno));987 ERROR("fdevent_poll failed: %s", strerror(poll_errno)); 988 988 } 989 989

