linux-surface / kernel

Linux kernel with modifications for Microsoft Surface devices.
Other
118 stars 33 forks source link

wrong format for size_t in dev_dbg() #147

Open ghibo opened 6 months ago

ghibo commented 6 months ago

When compiling with -Wformat it arises in drivers/hid/ipts/cmd.c and drivers/hid/ipts/mei.c some warning about wrong printf format, where a %ld is used for a size_t type, instead of a %zu. Here is a patch to fix those casting warnings.

0001-fix-size_t-printf-arguments.patch.txt

qzed commented 5 months ago

Thanks! This is something you should submit to https://github.com/linux-surface/intel-precise-touch though. The kernel code is based on that.