Turn off noisier logging

This commit is contained in:
Don Gagne
2014-07-07 10:17:39 -07:00
parent b8ba6400f2
commit f5c14ff140
+3 -3
View File
@@ -210,7 +210,7 @@ MavlinkFTP::_workList(Request *req)
return kErrNotDir;
}
printf("FTP: list %s offset %d\n", dirPath, hdr->offset);
printf("FTP: list %s offset %d\n", dirPath, hdr->offset);
ErrorCode errorCode = kErrNone;
struct dirent entry, *result = nullptr;
@@ -222,7 +222,7 @@ MavlinkFTP::_workList(Request *req)
for (;;) {
// read the directory entry
if (readdir_r(dp, &entry, &result)) {
printf("FTP: list %s readdir_r failure\n", dirPath);
printf("FTP: list %s readdir_r failure\n", dirPath);
errorCode = kErrIO;
break;
}
@@ -258,7 +258,7 @@ MavlinkFTP::_workList(Request *req)
// copy the name, which we know will fit
strcpy((char *)&hdr->data[offset], entry.d_name);
printf("FTP: list %s %s\n", dirPath, (char *)&hdr->data[offset-1]);
//printf("FTP: list %s %s\n", dirPath, (char *)&hdr->data[offset-1]);
offset += strlen(entry.d_name) + 1;
}