]> git.ipfire.org Git - thirdparty/curl.git/commit
infof: remove newline from format strings, always append it
authorDaniel Stenberg <daniel@haxx.se>
Tue, 6 Jul 2021 15:05:17 +0000 (17:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 7 Jul 2021 20:54:01 +0000 (22:54 +0200)
commite7416cfd2bd58d256b8524f31ef22a43aa23a970
treec9858ec841f50c6ec7566af3581886ca94d2204a
parent1026b36ea07d385bd270d444ba65f4065839f1cb
infof: remove newline from format strings, always append it

- the data needs to be "line-based" anyway since it's also passed to the
  debug callback/application

- it makes infof() work like failf() and consistency is good

- there's an assert that triggers on newlines in the format string

- Also removes a few instances of "..."

- Removes the code that would append "..." to the end of the data *iff*
  it was truncated in infof()

Closes #7357
69 files changed:
lib/altsvc.c
lib/c-hyper.c
lib/conncache.c
lib/connect.c
lib/cookie.c
lib/curl_gssapi.c
lib/curl_ntlm_wb.c
lib/curl_range.c
lib/curl_sasl.c
lib/dict.c
lib/doh.c
lib/easy.c
lib/ftp.c
lib/hostip.c
lib/hostip4.c
lib/hostip6.c
lib/http.c
lib/http2.c
lib/http_aws_sigv4.c
lib/http_negotiate.c
lib/http_ntlm.c
lib/http_proxy.c
lib/imap.c
lib/krb5.c
lib/ldap.c
lib/mqtt.c
lib/multi.c
lib/openldap.c
lib/pingpong.c
lib/pop3.c
lib/rand.c
lib/rtsp.c
lib/sendf.c
lib/smb.c
lib/smtp.c
lib/socks.c
lib/socks_gssapi.c
lib/socks_sspi.c
lib/telnet.c
lib/tftp.c
lib/transfer.c
lib/url.c
lib/vauth/digest_sspi.c
lib/vauth/krb5_gssapi.c
lib/vauth/krb5_sspi.c
lib/vauth/ntlm.c
lib/vauth/ntlm_sspi.c
lib/vauth/spnego_gssapi.c
lib/vauth/spnego_sspi.c
lib/vquic/ngtcp2.c
lib/vquic/quiche.c
lib/vssh/libssh.c
lib/vssh/libssh2.c
lib/vssh/wolfssh.c
lib/vtls/bearssl.c
lib/vtls/gskit.c
lib/vtls/gtls.c
lib/vtls/mbedtls.c
lib/vtls/mesalink.c
lib/vtls/nss.c
lib/vtls/openssl.c
lib/vtls/rustls.c
lib/vtls/schannel.c
lib/vtls/schannel_verify.c
lib/vtls/sectransp.c
lib/vtls/vtls.c
lib/vtls/wolfssl.c
lib/x509asn1.c
tests/unit/unit1652.c