mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
add errno to error message
This commit is contained in:
committed by
Lorenz Meier
parent
5601ca19de
commit
257e236c92
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user