From 8a845ab078c3fe12ac4edd16c8cbac5b7ec03b98 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 29 Apr 2022 03:59:45 +0300 Subject: libcamera: Replace toString with operator<<() for format classes Now that format classes implement the stream formatting operator<<(), use it instead of the toString() function. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- test/camera-sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/camera-sensor.cpp') diff --git a/test/camera-sensor.cpp b/test/camera-sensor.cpp index 9b06a60e..d3dcb510 100644 --- a/test/camera-sensor.cpp +++ b/test/camera-sensor.cpp @@ -99,7 +99,7 @@ protected: format.size != Size(4096, 2160)) { cerr << "Failed to get a suitable format, expected 4096x2160-0x" << utils::hex(MEDIA_BUS_FMT_SBGGR10_1X10) - << ", got " << format.toString() << endl; + << ", got " << format << endl; return TestFail; } -- cgit v1.2.1