mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
dataman: improve error reporting
This commit is contained in:
@@ -637,7 +637,7 @@ _file_read(dm_item_t item, unsigned index, void *buf, size_t count)
|
|||||||
|
|
||||||
/* Check for read error */
|
/* Check for read error */
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
return -1;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A zero length entry is a empty entry */
|
/* A zero length entry is a empty entry */
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ MavlinkMissionManager::init_offboard_mission()
|
|||||||
_current_seq = mission_state.current_seq;
|
_current_seq = mission_state.current_seq;
|
||||||
|
|
||||||
} else if (ret < 0) {
|
} else if (ret < 0) {
|
||||||
PX4_ERR("offboard mission init failed (%i)", errno);
|
PX4_ERR("offboard mission init failed (%i)", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
load_geofence_stats();
|
load_geofence_stats();
|
||||||
|
|||||||
Reference in New Issue
Block a user