add errno to error message

This commit is contained in:
Mark Whitehorn
2016-10-29 08:40:21 -06:00
committed by Lorenz Meier
parent 5601ca19de
commit 257e236c92

View File

@@ -86,7 +86,7 @@ void LogWriterFile::start_log(const char *filename)
_fd = ::open(filename, O_CREAT | O_WRONLY, PX4_O_MODE_666);
if (_fd < 0) {
PX4_ERR("Can't open log file %s", filename);
PX4_ERR("Can't open log file %s, errno: %d", filename, errno);
_should_run = false;
return;