Commit 0ce2bca7 authored by Yang Tse's avatar Yang Tse
Browse files

add LF termination to infof() trace string

parent b15024be
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
 *                            | (__| |_| |  _ <| |___
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *                             \___|\___/|_| \_\_____|
 *
 *
 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
 *
 *
 * This software is licensed as described in the file COPYING, which
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution. The terms
 * you should have received as part of this distribution. The terms
@@ -863,7 +863,7 @@ singleipconnect(struct connectdata *conn,
    return CURLE_OK;
    return CURLE_OK;
  }
  }
  memcpy(conn->ip_addr_str, conn->primary_ip, MAX_IPADR_LEN);
  memcpy(conn->ip_addr_str, conn->primary_ip, MAX_IPADR_LEN);
  infof(data, "  Trying %s... ", conn->ip_addr_str);
  infof(data, "  Trying %s...\n", conn->ip_addr_str);


  Curl_persistconninfo(conn);
  Curl_persistconninfo(conn);


+2 −2
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
 *                            | (__| |_| |  _ <| |___
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *                             \___|\___/|_| \_\_____|
 *
 *
 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
 *
 *
 * This software is licensed as described in the file COPYING, which
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution. The terms
 * you should have received as part of this distribution. The terms
@@ -695,7 +695,7 @@ CURLcode Curl_ntlm_create_type3_message(struct SessionHandle *data,
  /* Get the machine's un-qualified host name as NTLM doesn't like the fully
  /* Get the machine's un-qualified host name as NTLM doesn't like the fully
     qualified domain name */
     qualified domain name */
  if(Curl_gethostname(host, sizeof(host))) {
  if(Curl_gethostname(host, sizeof(host))) {
    infof(data, "gethostname() failed, continuing without!");
    infof(data, "gethostname() failed, continuing without!\n");
    hostlen = 0;
    hostlen = 0;
  }
  }
  else {
  else {
+2 −2
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
 *                            | (__| |_| |  _ <| |___
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *                             \___|\___/|_| \_\_____|
 *
 *
 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
 *
 *
 * This software is licensed as described in the file COPYING, which
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution. The terms
 * you should have received as part of this distribution. The terms
@@ -258,7 +258,7 @@ cyassl_connect_step2(struct connectdata *conn,
  }
  }


  conssl->connecting_state = ssl_connect_3;
  conssl->connecting_state = ssl_connect_3;
  infof(data, "SSL connected");
  infof(data, "SSL connected\n");


  return CURLE_OK;
  return CURLE_OK;
}
}
+3 −3
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
 *                            | (__| |_| |  _ <| |___
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *                             \___|\___/|_| \_\_____|
 *
 *
 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
 *
 *
 * This software is licensed as described in the file COPYING, which
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution. The terms
 * you should have received as part of this distribution. The terms
@@ -178,7 +178,7 @@ static CURLcode dict_do(struct connectdata *conn, bool *done)
    }
    }


    if((word == NULL) || (*word == (char)0)) {
    if((word == NULL) || (*word == (char)0)) {
      infof(data, "lookup word is missing");
      infof(data, "lookup word is missing\n");
      word=(char *)"default";
      word=(char *)"default";
    }
    }
    if((database == NULL) || (*database == (char)0)) {
    if((database == NULL) || (*database == (char)0)) {
@@ -232,7 +232,7 @@ static CURLcode dict_do(struct connectdata *conn, bool *done)
    }
    }


    if((word == NULL) || (*word == (char)0)) {
    if((word == NULL) || (*word == (char)0)) {
      infof(data, "lookup word is missing");
      infof(data, "lookup word is missing\n");
      word=(char *)"default";
      word=(char *)"default";
    }
    }
    if((database == NULL) || (*database == (char)0)) {
    if((database == NULL) || (*database == (char)0)) {
+3 −3
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
 *                            | (__| |_| |  _ <| |___
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *                             \___|\___/|_| \_\_____|
 *
 *
 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
 *
 *
 * This software is licensed as described in the file COPYING, which
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution. The terms
 * you should have received as part of this distribution. The terms
@@ -427,7 +427,7 @@ static CURLcode ReceivedServerConnect(struct connectdata* conn, bool* received)
  /* First check whether there is a cached response from server */
  /* First check whether there is a cached response from server */
  if(pp->cache_size && pp->cache && pp->cache[0] > '3') {
  if(pp->cache_size && pp->cache && pp->cache[0] > '3') {
    /* Data connection could not be established, let's return */
    /* Data connection could not be established, let's return */
    infof(data, "There is negative response in cache while serv connect");
    infof(data, "There is negative response in cache while serv connect\n");
    Curl_GetFTPResponse(&nread, conn, &ftpcode);
    Curl_GetFTPResponse(&nread, conn, &ftpcode);
    return CURLE_FTP_ACCEPT_FAILED;
    return CURLE_FTP_ACCEPT_FAILED;
  }
  }
@@ -1153,7 +1153,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
         * the control connection instead and restart the port loop
         * the control connection instead and restart the port loop
         */
         */


        infof(data, "bind(port=%hu) on non-local address failed: %s", port,
        infof(data, "bind(port=%hu) on non-local address failed: %s\n", port,
              Curl_strerror(conn, error) );
              Curl_strerror(conn, error) );


        sslen = sizeof(ss);
        sslen = sizeof(ss);
Loading