More logging

This commit is contained in:
Don Gagne 2014-07-06 16:04:30 -07:00
parent 91537934c4
commit b8ba6400f2
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ MavlinkFTP::_workList(Request *req)
return kErrNotDir;
}
printf("FTP: list %s\n", dirPath);
printf("FTP: list %s offset %d\n", dirPath, hdr->offset);
ErrorCode errorCode = kErrNone;
struct dirent entry, *result = nullptr;
@ -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]);
printf("FTP: list %s %s\n", dirPath, (char *)&hdr->data[offset-1]);
offset += strlen(entry.d_name) + 1;
}