Skip to content
Snippets Groups Projects
Commit 257e236c authored by Mark Whitehorn's avatar Mark Whitehorn Committed by Lorenz Meier
Browse files

add errno to error message

parent 5601ca19
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment