#include "xlat/v4l2_device_capabilities_flags.h"
static int
-print_v4l2_capability(struct tcb *tcp, const long arg)
+print_v4l2_capability(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct v4l2_capability caps;
#include "xlat/v4l2_format_description_flags.h"
static int
-print_v4l2_fmtdesc(struct tcb *tcp, const long arg)
+print_v4l2_fmtdesc(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct v4l2_fmtdesc f;
}
static int
-print_v4l2_format(struct tcb *tcp, const long arg, const bool is_get)
+print_v4l2_format(struct tcb *const tcp, const kernel_ureg_t arg,
+ const bool is_get)
{
struct_v4l2_format f;
#include "xlat/v4l2_memories.h"
static int
-print_v4l2_requestbuffers(struct tcb *tcp, const long arg)
+print_v4l2_requestbuffers(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct v4l2_requestbuffers reqbufs;
#include "xlat/v4l2_buf_flags.h"
static int
-print_v4l2_buffer(struct tcb *tcp, const unsigned int code, const long arg)
+print_v4l2_buffer(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
struct_v4l2_buffer b;
tprintf(", m.offset=%#x", b.m.offset);
} else if (b.memory == V4L2_MEMORY_USERPTR) {
tprints(", m.userptr=");
- printaddr((unsigned long) b.m.userptr);
+ printaddr(b.m.userptr);
}
tprintf(", length=%u, bytesused=%u, flags=",
}
static int
-print_v4l2_framebuffer(struct tcb *tcp, const long arg)
+print_v4l2_framebuffer(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct_v4l2_framebuffer b;
if (!umove_or_printaddr(tcp, arg, &b)) {
tprintf("{capability=%#x, flags=%#x, base=",
b.capability, b.flags);
- printaddr((unsigned long) b.base);
+ printaddr(ptr_to_kulong(b.base));
tprints("}");
}
}
static int
-print_v4l2_buf_type(struct tcb *tcp, const long arg)
+print_v4l2_buf_type(struct tcb *const tcp, const kernel_ureg_t arg)
{
int type;
#include "xlat/v4l2_capture_modes.h"
static int
-print_v4l2_streamparm(struct tcb *tcp, const long arg, const bool is_get)
+print_v4l2_streamparm(struct tcb *const tcp, const kernel_ureg_t arg,
+ const bool is_get)
{
struct v4l2_streamparm s;
}
static int
-print_v4l2_standard(struct tcb *tcp, const long arg)
+print_v4l2_standard(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct_v4l2_standard s;
#include "xlat/v4l2_input_types.h"
static int
-print_v4l2_input(struct tcb *tcp, const long arg)
+print_v4l2_input(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct_v4l2_input i;
#include "xlat/v4l2_control_ids.h"
static int
-print_v4l2_control(struct tcb *tcp, const long arg, const bool is_get)
+print_v4l2_control(struct tcb *const tcp, const kernel_ureg_t arg,
+ const bool is_get)
{
struct v4l2_control c;
#include "xlat/v4l2_control_flags.h"
static int
-print_v4l2_queryctrl(struct tcb *tcp, const long arg)
+print_v4l2_queryctrl(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct v4l2_queryctrl c;
}
static int
-print_v4l2_cropcap(struct tcb *tcp, const long arg)
+print_v4l2_cropcap(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct v4l2_cropcap c;
}
static int
-print_v4l2_crop(struct tcb *tcp, const long arg, const bool is_get)
+print_v4l2_crop(struct tcb *const tcp, const kernel_ureg_t arg,
+ const bool is_get)
{
struct v4l2_crop c;
tprintf(", size=%u", p->size);
if (p->size > 0) {
tprints(", string=");
- printstr(tcp, (long) p->string, p->size);
+ printstrn(tcp, ptr_to_kulong(p->string), p->size);
} else
# endif
- tprintf(", value=%d, value64=%lld", p->value,
- (long long) p->value64);
+ tprintf(", value=%d, value64=%" PRId64, p->value, (int64_t) p->value64);
tprints("}");
return true;
#include "xlat/v4l2_control_classes.h"
static int
-print_v4l2_ext_controls(struct tcb *tcp, const long arg, const bool is_get)
+print_v4l2_ext_controls(struct tcb *const tcp, const kernel_ureg_t arg,
+ const bool is_get)
{
struct_v4l2_ext_controls c;
tprints("controls=");
struct_v4l2_ext_control ctrl;
- bool fail = !print_array(tcp, (unsigned long) c.controls, c.count,
+ bool fail = !print_array(tcp, ptr_to_kulong(c.controls), c.count,
&ctrl, sizeof(ctrl),
umoven_or_printaddr_ignore_syserror,
print_v4l2_ext_control, 0);
# include "xlat/v4l2_framesize_types.h"
static int
-print_v4l2_frmsizeenum(struct tcb *tcp, const long arg)
+print_v4l2_frmsizeenum(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct v4l2_frmsizeenum s;
# include "xlat/v4l2_frameinterval_types.h"
static int
-print_v4l2_frmivalenum(struct tcb *tcp, const long arg)
+print_v4l2_frmivalenum(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct v4l2_frmivalenum f;
#ifdef VIDIOC_CREATE_BUFS
static int
-print_v4l2_create_buffers(struct tcb *tcp, const long arg)
+print_v4l2_create_buffers(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct_v4l2_create_buffers b;
}
#endif /* VIDIOC_CREATE_BUFS */
-MPERS_PRINTER_DECL(int, v4l2_ioctl,
- struct tcb *tcp, const unsigned int code, const long arg)
+MPERS_PRINTER_DECL(int, v4l2_ioctl, struct tcb *const tcp,
+ const unsigned int code, const kernel_ureg_t arg)
{
if (!verbose(tcp))
return RVAL_DECODED;