summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-23 23:41:13 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-25 23:42:16 +0100
commitaba01da6390894c9e7ebb6691da544bc01b6324d (patch)
treecccdc610b043e065e479eefb53a72893d0e06e64 /lib/http2.c
parent78617b48e46e5934d94c155e0b4565978341bfe6 (diff)
downloadcurl-aba01da6390894c9e7ebb6691da544bc01b6324d.tar.gz
failf: remove newline from formatting strings
... as failf adds one itself. Also: add an assert() to failf() that triggers on a newline in the format string! Closes #6365
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 7a337a7f3..7ed708e10 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -542,7 +542,7 @@ static int push_promise(struct Curl_easy *data,
stream = data->req.p.http;
if(!stream) {
- failf(data, "Internal NULL stream!\n");
+ failf(data, "Internal NULL stream!");
(void)Curl_close(&newhandle);
rv = CURL_PUSH_DENY;
goto fail;
@@ -957,7 +957,7 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
stream = data_s->req.p.http;
if(!stream) {
- failf(data_s, "Internal NULL stream! 5\n");
+ failf(data_s, "Internal NULL stream!");
return NGHTTP2_ERR_CALLBACK_FAILURE;
}
@@ -1341,7 +1341,7 @@ static int h2_process_pending_input(struct connectdata *conn,
if(rv < 0) {
failf(data,
"h2_process_pending_input: nghttp2_session_mem_recv() returned "
- "%zd:%s\n", rv, nghttp2_strerror((int)rv));
+ "%zd:%s", rv, nghttp2_strerror((int)rv));
*err = CURLE_RECV_ERROR;
return -1;
}