summaryrefslogtreecommitdiff
path: root/src/libcamera/v4l2_videodevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/v4l2_videodevice.cpp')
-rw-r--r--src/libcamera/v4l2_videodevice.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp
index eb4e44de..208ab541 100644
--- a/src/libcamera/v4l2_videodevice.cpp
+++ b/src/libcamera/v4l2_videodevice.cpp
@@ -23,6 +23,7 @@
#include "log.h"
#include "media_device.h"
#include "media_object.h"
+#include "utils.h"
/**
* \file v4l2_videodevice.h
@@ -239,10 +240,7 @@ LOG_DECLARE_CATEGORY(V4L2)
const std::string V4L2DeviceFormat::toString() const
{
std::stringstream ss;
-
- ss.fill(0);
- ss << size.toString() << "-0x" << std::hex << std::setw(8) << fourcc;
-
+ ss << size.toString() << "-" << utils::hex(fourcc);
return ss.str();
}