From: Dmitry V. Levin Date: Wed, 21 Dec 2016 13:13:08 +0000 (+0000) Subject: evdev: cast pointers to kernel_ureg_t instead of unsigned long X-Git-Tag: v4.16~301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa66f3f700b1a1d8699326e88f798965bd503a65;p=strace evdev: cast pointers to kernel_ureg_t instead of unsigned long * evdev.c (ff_effect_ioctl): Cast ff_periodic_effect.custom_data pointer to kernel_ureg_t instead of unsigned long. --- diff --git a/evdev.c b/evdev.c index b24f9d32..2d02b3c7 100644 --- a/evdev.c +++ b/evdev.c @@ -135,7 +135,7 @@ ff_effect_ioctl(struct tcb *tcp, long arg) decode_envelope(&ffe.u.periodic.envelope); tprintf(", custom_len=%u, custom_data=", ffe.u.periodic.custom_len); - printaddr((unsigned long) ffe.u.periodic.custom_data); + printaddr((kernel_ureg_t) ffe.u.periodic.custom_data); tprints("}"); break; case FF_RUMBLE: