diff --git a/sw/airborne/modules/computer_vision/video_thread.c b/sw/airborne/modules/computer_vision/video_thread.c index a639027b66..250a354efb 100644 --- a/sw/airborne/modules/computer_vision/video_thread.c +++ b/sw/airborne/modules/computer_vision/video_thread.c @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -227,7 +228,7 @@ static void start_video_thread(struct video_config_t *camera) // Start the streaming thread for a camera pthread_t tid; if (pthread_create(&tid, NULL, video_thread_function, (void *)(camera)) != 0) { - printf("[viewvideo] Could not create streaming thread for camera %s.\n", camera->dev_name); + printf("[viewvideo] Could not create streaming thread for camera %s: Reason: %d.\n", camera->dev_name, errno); return; } }