From c4ed2dfffe10ab8b3bd2cf1c8af2c8fddc96119a Mon Sep 17 00:00:00 2001 From: Xiuming Chen Date: Wed, 24 Sep 2014 13:40:21 -0700 Subject: [PATCH] Fix a log message. --- proto/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/http.c b/proto/http.c index 373e8785..ce314b32 100644 --- a/proto/http.c +++ b/proto/http.c @@ -50,7 +50,7 @@ static uint64_t http_add_uwsgi_header(struct wsgi_request *wsgi_req, char *hh, s if (buffer + keylen + hvlen + 2 + 2 >= watermark) { if (keylen <= 0xff && hvlen <= 0xff) { if (has_prefix) { - uwsgi_log("[WARNING] unable to add HTTP_%.*s=%.*s to uwsgi packet, consider increasing buffer size\n", keylen, hh, hvlen, hv); + uwsgi_log("[WARNING] unable to add HTTP_%.*s=%.*s to uwsgi packet, consider increasing buffer size\n", keylen - 5, hh, hvlen, hv); } else { uwsgi_log("[WARNING] unable to add %.*s=%.*s to uwsgi packet, consider increasing buffer size\n", keylen, hh, hvlen, hv);