mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 02:11:35 +08:00
sdlog2: Output cleanup
This commit is contained in:
@@ -502,10 +502,8 @@ int open_perf_file(const char* str)
|
|||||||
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC);
|
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC);
|
||||||
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
mavlink_and_console_log_critical(mavlink_fd, "[sdlog2] failed opening log: %s", log_file_name);
|
mavlink_and_console_log_critical(mavlink_fd, "[sdlog2] failed opening: %s", log_file_name);
|
||||||
|
|
||||||
} else {
|
|
||||||
mavlink_and_console_log_info(mavlink_fd, "[sdlog2] log file: %s", log_file_name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
|
|||||||
Reference in New Issue
Block a user