libcamera: v4l2_device: Print control ID in unknown type log messagge
When the type of a control enumerated from a V4L2 device is not supported, we log a debug message that mentions the control type. This makes it hard to figure out which control is faulty. Print the control ID instead. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
f391048a7b
commit
876b900862
1 changed files with 5 additions and 2 deletions
|
@ -8,11 +8,13 @@
|
|||
#include "v4l2_device.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <iomanip>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "utils.h"
|
||||
#include "v4l2_controls.h"
|
||||
|
||||
/**
|
||||
|
@ -371,8 +373,9 @@ void V4L2Device::listControls()
|
|||
break;
|
||||
/* \todo Support compound controls. */
|
||||
default:
|
||||
LOG(V4L2, Debug) << "Control type '" << ctrl.type
|
||||
<< "' not supported";
|
||||
LOG(V4L2, Debug)
|
||||
<< "Control " << utils::hex(ctrl.id)
|
||||
<< " has unsupported type " << ctrl.type;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue