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:
Jukka Laitinen
2023-07-20 09:20:39 +03:00
committed by Beat Küng
parent 6889443bd7
commit 485ec14246
+1 -1
View File
@@ -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);
}