diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-29 22:27:41 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-30 03:55:32 +0300 |
commit | bf01e04f29931aa6d64f3d408ce2a374b79254b6 (patch) | |
tree | 5ca5f9f137e5a89268cf68f5fd1fd9d1f157a8a6 /test/v4l2_videodevice/meson.build | |
parent | 80551b8754ddb822151576189050f9c7a8aa5ac2 (diff) |
qcam: Fix logging of sequence number
The sequence number of captured frames is logged to the console with
padding to 6 characters to increase readability. The output is however
incorrect, as 123 is printed as 00012300000. This is caused by the
auto-space feature of QDebug, which inserts a space after every field.
This doesn't play well with stream format manipulation, as it ends up
padding the automatically inserted space the same way as the previous
argument.
This is a bug in Qt, work around it by formatting the sequence number
manually.
Fixes: 494da4467ddf ("qcam: Use Qt qInfo() and qWarning() logging facilities")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/v4l2_videodevice/meson.build')
0 files changed, 0 insertions, 0 deletions