mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:43:33 +03:00
lib: remove exclamation marks
... from infof() and failf() calls. Make them less attention seeking. Closes #8713
This commit is contained in:
parent
36e09dc302
commit
6968fb9d54
31 changed files with 101 additions and 101 deletions
30
lib/http2.c
30
lib/http2.c
|
|
@ -562,7 +562,7 @@ static int push_promise(struct Curl_easy *data,
|
|||
const nghttp2_push_promise *frame)
|
||||
{
|
||||
int rv; /* one of the CURL_PUSH_* defines */
|
||||
H2BUGF(infof(data, "PUSH_PROMISE received, stream %u!",
|
||||
H2BUGF(infof(data, "PUSH_PROMISE received, stream %u",
|
||||
frame->promised_stream_id));
|
||||
if(data->multi->push_cb) {
|
||||
struct HTTP *stream;
|
||||
|
|
@ -582,11 +582,11 @@ static int push_promise(struct Curl_easy *data,
|
|||
heads.data = data;
|
||||
heads.frame = frame;
|
||||
/* ask the application */
|
||||
H2BUGF(infof(data, "Got PUSH_PROMISE, ask application!"));
|
||||
H2BUGF(infof(data, "Got PUSH_PROMISE, ask application"));
|
||||
|
||||
stream = data->req.p.http;
|
||||
if(!stream) {
|
||||
failf(data, "Internal NULL stream!");
|
||||
failf(data, "Internal NULL stream");
|
||||
(void)Curl_close(&newhandle);
|
||||
rv = CURL_PUSH_DENY;
|
||||
goto fail;
|
||||
|
|
@ -653,7 +653,7 @@ static int push_promise(struct Curl_easy *data,
|
|||
Curl_dyn_init(&newstream->trailer_recvbuf, DYN_H2_TRAILERS);
|
||||
}
|
||||
else {
|
||||
H2BUGF(infof(data, "Got PUSH_PROMISE, ignore it!"));
|
||||
H2BUGF(infof(data, "Got PUSH_PROMISE, ignore it"));
|
||||
rv = CURL_PUSH_DENY;
|
||||
}
|
||||
fail:
|
||||
|
|
@ -802,7 +802,7 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame,
|
|||
}
|
||||
break;
|
||||
default:
|
||||
H2BUGF(infof(data_s, "Got frame type %x for stream %u!",
|
||||
H2BUGF(infof(data_s, "Got frame type %x for stream %u",
|
||||
frame->hd.type, stream_id));
|
||||
break;
|
||||
}
|
||||
|
|
@ -913,15 +913,15 @@ static int on_stream_close(nghttp2_session *session, int32_t stream_id,
|
|||
/* remove the entry from the hash as the stream is now gone */
|
||||
rv = nghttp2_session_set_stream_user_data(session, stream_id, 0);
|
||||
if(rv) {
|
||||
infof(data_s, "http/2: failed to clear user_data for stream %d!",
|
||||
infof(data_s, "http/2: failed to clear user_data for stream %d",
|
||||
stream_id);
|
||||
DEBUGASSERT(0);
|
||||
}
|
||||
if(stream_id == httpc->pause_stream_id) {
|
||||
H2BUGF(infof(data_s, "Stopped the pause stream!"));
|
||||
H2BUGF(infof(data_s, "Stopped the pause stream"));
|
||||
httpc->pause_stream_id = 0;
|
||||
}
|
||||
H2BUGF(infof(data_s, "Removed stream %u hash!", stream_id));
|
||||
H2BUGF(infof(data_s, "Removed stream %u hash", stream_id));
|
||||
stream->stream_id = 0; /* cleared */
|
||||
}
|
||||
return 0;
|
||||
|
|
@ -1006,7 +1006,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!");
|
||||
failf(data_s, "Internal NULL stream");
|
||||
return NGHTTP2_ERR_CALLBACK_FAILURE;
|
||||
}
|
||||
|
||||
|
|
@ -1260,7 +1260,7 @@ void Curl_http2_done(struct Curl_easy *data, bool premature)
|
|||
int rv = nghttp2_session_set_stream_user_data(httpc->h2,
|
||||
http->stream_id, 0);
|
||||
if(rv) {
|
||||
infof(data, "http/2: failed to clear user_data for stream %d!",
|
||||
infof(data, "http/2: failed to clear user_data for stream %d",
|
||||
http->stream_id);
|
||||
DEBUGASSERT(0);
|
||||
}
|
||||
|
|
@ -1285,7 +1285,7 @@ static CURLcode http2_init(struct Curl_easy *data, struct connectdata *conn)
|
|||
rc = nghttp2_session_callbacks_new(&callbacks);
|
||||
|
||||
if(rc) {
|
||||
failf(data, "Couldn't initialize nghttp2 callbacks!");
|
||||
failf(data, "Couldn't initialize nghttp2 callbacks");
|
||||
return CURLE_OUT_OF_MEMORY; /* most likely at least */
|
||||
}
|
||||
|
||||
|
|
@ -1314,7 +1314,7 @@ static CURLcode http2_init(struct Curl_easy *data, struct connectdata *conn)
|
|||
nghttp2_session_callbacks_del(callbacks);
|
||||
|
||||
if(rc) {
|
||||
failf(data, "Couldn't initialize nghttp2!");
|
||||
failf(data, "Couldn't initialize nghttp2");
|
||||
return CURLE_OUT_OF_MEMORY; /* most likely at least */
|
||||
}
|
||||
}
|
||||
|
|
@ -1519,7 +1519,7 @@ static ssize_t http2_handle_stream_close(struct connectdata *conn,
|
|||
/* Reset to FALSE to prevent infinite loop in readwrite_data function. */
|
||||
stream->closed = FALSE;
|
||||
if(stream->error == NGHTTP2_REFUSED_STREAM) {
|
||||
H2BUGF(infof(data, "REFUSED_STREAM (%d), try again on a new connection!",
|
||||
H2BUGF(infof(data, "REFUSED_STREAM (%d), try again on a new connection",
|
||||
stream->stream_id));
|
||||
connclose(conn, "REFUSED_STREAM"); /* don't use this anymore */
|
||||
data->state.refused_stream = TRUE;
|
||||
|
|
@ -1678,7 +1678,7 @@ static ssize_t http2_recv(struct Curl_easy *data, int sockindex,
|
|||
));
|
||||
|
||||
if((data->state.drain) && stream->memlen) {
|
||||
H2BUGF(infof(data, "http2_recv: DRAIN %zu bytes stream %u!! (%p => %p)",
|
||||
H2BUGF(infof(data, "http2_recv: DRAIN %zu bytes stream %u (%p => %p)",
|
||||
stream->memlen, stream->stream_id,
|
||||
stream->mem, mem));
|
||||
if(mem != stream->mem) {
|
||||
|
|
@ -2094,7 +2094,7 @@ CURLcode Curl_http2_switched(struct Curl_easy *data,
|
|||
stream->stream_id,
|
||||
data);
|
||||
if(rv) {
|
||||
infof(data, "http/2: failed to set user_data for stream %d!",
|
||||
infof(data, "http/2: failed to set user_data for stream %d",
|
||||
stream->stream_id);
|
||||
DEBUGASSERT(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue