mavlink: fix PX4_DEBUG message formats

This commit is contained in:
Junwoo Hwang
2022-08-12 09:43:12 +02:00
committed by Beat Küng
parent 0c218e6628
commit d7a962b426
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -559,7 +559,7 @@ MavlinkFTP::_workRead(PayloadHeader *payload)
return kErrInvalidSession;
}
PX4_DEBUG("FTP: read offset:%" PRIu32, payload->offset);
PX4_DEBUG("FTP: read offset:%ld" PRIu32, payload->offset);
// We have to test seek past EOF ourselves, lseek will allow seek past EOF
if (payload->offset >= _session_info.file_size) {
@@ -567,7 +567,7 @@ MavlinkFTP::_workRead(PayloadHeader *payload)
return kErrEOF;
}
PX4_DEBUG("lseek with offset: %d", payload->offset);
PX4_DEBUG("lseek with offset: %ld", payload->offset);
if (lseek(_session_info.fd, payload->offset, SEEK_SET) < 0) {
_our_errno = errno;