forked from Archive/PX4-Autopilot
dataman: improve error reporting
This commit is contained in:
parent
45e185f8e3
commit
a2ef611a30
|
@ -637,7 +637,7 @@ _file_read(dm_item_t item, unsigned index, void *buf, size_t count)
|
|||
|
||||
/* Check for read error */
|
||||
if (len < 0) {
|
||||
return -1;
|
||||
return -errno;
|
||||
}
|
||||
|
||||
/* A zero length entry is a empty entry */
|
||||
|
|
|
@ -120,7 +120,7 @@ MavlinkMissionManager::init_offboard_mission()
|
|||
_current_seq = mission_state.current_seq;
|
||||
|
||||
} else if (ret < 0) {
|
||||
PX4_ERR("offboard mission init failed (%i)", errno);
|
||||
PX4_ERR("offboard mission init failed (%i)", ret);
|
||||
}
|
||||
|
||||
load_geofence_stats();
|
||||
|
|
Loading…
Reference in New Issue