static CURLcode ftp_state_loggedin(struct connectdata *conn)
{
CURLcode result = CURLE_OK;
- struct SessionHandle *data = conn->data;
- infof(data, "We have successfully logged in\n");
#ifdef HAVE_KRB4
if(data->set.krb4) {
}
}
state(conn, FTP_STOP); /* we are done with the CONNECT phase! */
- infof(data, "protocol connect phase DONE\n");
+ DEBUGF(infof(data, "protocol connect phase DONE\n"));
break;
case FTP_QUOTE:
if((-1 == to) && (from>=0)) {
/* X - */
conn->resume_from = from;
- infof(data, "FTP RANGE %" FORMAT_OFF_T " to end of file\n", from);
+ DEBUGF(infof(data, "FTP RANGE %" FORMAT_OFF_T " to end of file\n", from));
}
else if(from < 0) {
/* -Y */
totalsize = -from;
conn->maxdownload = -from;
conn->resume_from = from;
- infof(data, "FTP RANGE the last %" FORMAT_OFF_T " bytes\n", totalsize);
+ DEBUGF(infof(data, "FTP RANGE the last %" FORMAT_OFF_T " bytes\n", totalsize));
}
else {
/* X-Y */
totalsize = to-from;
conn->maxdownload = totalsize+1; /* include the last mentioned byte */
conn->resume_from = from;
- infof(data, "FTP RANGE from %" FORMAT_OFF_T
- " getting %" FORMAT_OFF_T " bytes\n", from, conn->maxdownload);
+ DEBUGF(infof(data, "FTP RANGE from %" FORMAT_OFF_T
+ " getting %" FORMAT_OFF_T " bytes\n",
+ from, conn->maxdownload));
}
- infof(data, "range-download from %" FORMAT_OFF_T
- " to %" FORMAT_OFF_T ", totally %" FORMAT_OFF_T " bytes\n",
- from, to, conn->maxdownload);
+ DEBUGF(infof(data, "range-download from %" FORMAT_OFF_T
+ " to %" FORMAT_OFF_T ", totally %" FORMAT_OFF_T " bytes\n",
+ from, to, conn->maxdownload));
ftp->dont_check = TRUE; /* dont check for successful transfer */
}
return CURLE_OK;
/* the ftp struct is inited in Curl_ftp_connect() */
struct FTP *ftp = conn->proto.ftp;
- infof(data, "DO-MORE phase starts\n");
+ DEBUGF(infof(data, "DO-MORE phase starts\n"));
if(!ftp->no_transfer && !conn->bits.no_body) {
/* a transfer is about to take place */
result=Curl_Transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
/* end of transfer */
- infof(data, "DO-MORE phase ends\n");
+ DEBUGF(infof(data, "DO-MORE phase ends\n"));
return result;
}
CURLcode result=CURLE_OK;
struct SessionHandle *data=conn->data;
- infof(data, "DO phase starts\n");
+ DEBUGF(infof(data, "DO phase starts\n"));
*dophase_done = FALSE; /* not done yet */
*connected = conn->bits.tcpconnect;
if(*dophase_done)
- infof(data, "DO phase is comlete\n");
+ DEBUGF(infof(data, "DO phase is comlete\n"));
return result;
}
if(*dophase_done) {
result = ftp_dophase_done(conn, FALSE /* not connected */);
- infof(conn->data, "DO phase is comlete\n");
+ DEBUGF(infof(conn->data, "DO phase is comlete\n"));
}
return result;
}