dataman: improve error reporting

This commit is contained in:
Beat Küng 2017-07-21 14:22:28 +02:00 committed by Lorenz Meier
parent 45e185f8e3
commit a2ef611a30
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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();