summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/camera/buffer_import.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp
index ab6e74bd..6997ea78 100644
--- a/test/camera/buffer_import.cpp
+++ b/test/camera/buffer_import.cpp
@@ -74,12 +74,15 @@ public:
video_ = V4L2VideoDevice::fromEntityName(media_.get(), videoDeviceName);
if (!video_) {
- std::cout << "Unable to open " << videoDeviceName << std::endl;
+ std::cout << "Failed to get video device from entity "
+ << videoDeviceName << std::endl;
return TestFail;
}
- if (video_->open())
+ if (video_->open()) {
+ std::cout << "Unable to open " << videoDeviceName << std::endl;
return TestFail;
+ }
/* Configure the format. */
V4L2DeviceFormat format;