diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index a6e9ca247828..a21944160253 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -415,7 +415,7 @@ void V4L2Device::close()
 
 std::string V4L2Device::logPrefix() const
 {
-	return deviceNode_;
+	return deviceNode_ + (V4L2_TYPE_IS_OUTPUT(bufferType_) ? "[out]" : "[cap]");
 }
 
 /**
