libcamera: Fix incorrect toString() to operator<<() conversions
Commit8a845ab078
("libcamera: Replace toString with operator<<() for format classes") incorrectly converted some of the toString() usages, resulting in pointer values being printed instead of formats. Fix it. Fixes:8a845ab078
("libcamera: Replace toString with operator<<() for format classes") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
e115a69135
commit
2094ac4f8c
3 changed files with 5 additions and 5 deletions
|
@ -211,7 +211,7 @@ int CIO2Device::configure(const Size &size, V4L2DeviceFormat *outputFormat)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
LOG(IPU3, Debug) << "CIO2 output format " << outputFormat;
|
LOG(IPU3, Debug) << "CIO2 output format " << *outputFormat;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -479,7 +479,7 @@ int ImgUDevice::configure(const PipeConfig &pipeConfig, V4L2DeviceFormat *inputF
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
LOG(IPU3, Debug) << "ImgU input format = " << inputFormat;
|
LOG(IPU3, Debug) << "ImgU input format = " << *inputFormat;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* \todo The IPU3 driver implementation shall be changed to use the
|
* \todo The IPU3 driver implementation shall be changed to use the
|
||||||
|
@ -568,7 +568,7 @@ int ImgUDevice::configureVideoDevice(V4L2VideoDevice *dev, unsigned int pad,
|
||||||
|
|
||||||
const char *name = dev == output_.get() ? "output" : "viewfinder";
|
const char *name = dev == output_.get() ? "output" : "viewfinder";
|
||||||
LOG(IPU3, Debug) << "ImgU " << name << " format = "
|
LOG(IPU3, Debug) << "ImgU " << name << " format = "
|
||||||
<< outputFormat;
|
<< *outputFormat;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -610,7 +610,7 @@ int SimpleCameraData::setupFormats(V4L2SubdeviceFormat *format,
|
||||||
<< " produces " << sourceFormat
|
<< " produces " << sourceFormat
|
||||||
<< ", sink '" << sink->entity()->name()
|
<< ", sink '" << sink->entity()->name()
|
||||||
<< "':" << sink->index()
|
<< "':" << sink->index()
|
||||||
<< " requires " << format;
|
<< " requires " << *format;
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -620,7 +620,7 @@ int SimpleCameraData::setupFormats(V4L2SubdeviceFormat *format,
|
||||||
<< "':" << source->index()
|
<< "':" << source->index()
|
||||||
<< " -> '" << sink->entity()->name()
|
<< " -> '" << sink->entity()->name()
|
||||||
<< "':" << sink->index()
|
<< "':" << sink->index()
|
||||||
<< " configured with format " << format;
|
<< " configured with format " << *format;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue