]> granicus.if.org Git - strace/commit
Fix compilation warnings about incompatible print formats
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 23 Feb 2015 21:35:20 +0000 (21:35 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 23 Feb 2015 22:19:19 +0000 (22:19 +0000)
commitd67ba3e434d72e884a459e662496c0b9a6ac5f17
treeae925362d0e940c6199f848edac2d25d7f9752c2
parent7226c3a73d149e0055f5692344c56dedb88a3eca
Fix compilation warnings about incompatible print formats

On some platforms printing of __s64 types with "%lld" format,
or __u64 types with "%llu" or "%llx" formats causes a warning
that __s64/__u64 type is not compatible with long long format.
From my PoV, this is nonsense, but the workaround costs nothing.

* scsi.c (print_sg_io_v4_req, print_sg_io_v4_res): Cast __u64 types
to (unsigned long long).
* v4l2.c (v4l2_ioctl): Likewise.  Cast __s64 type to (long long).
scsi.c
v4l2.c