mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
px4_init.cpp: Properly check the return value of mounting procfs
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Beat Küng
parent
6889443bd7
commit
485ec14246
@@ -163,7 +163,7 @@ int px4_platform_init()
|
||||
#if defined(CONFIG_FS_PROCFS)
|
||||
int ret_mount_procfs = mount(nullptr, "/proc", "procfs", 0, nullptr);
|
||||
|
||||
if (ret < 0) {
|
||||
if (ret_mount_procfs < 0) {
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount procfs at /proc: %d\n", ret_mount_procfs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user