Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: isl29020: Fix the wrong format specifier

The format specifier of "unsigned long int" in sprintf() should be "%lu", not
"%ld".

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20241111091950.4299-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zhu Jun and committed by
Greg Kroah-Hartman
40e210a1 03e6a10b

+1 -1
+1 -1
drivers/misc/isl29020.c
··· 68 68 if (val < 0) 69 69 return val; 70 70 lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536; 71 - return sprintf(buf, "%ld\n", lux); 71 + return sprintf(buf, "%lu\n", lux); 72 72 } 73 73 74 74 static ssize_t als_sensing_range_store(struct device *dev,