mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
fix format string missmatch in staging/iio/Documentation/iio_utils.h
spotted by cppcheck Signed-off-by: Toralf Förster <toralf.foerster@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
a91a73c8b3
commit
34683a5c6e
@ -318,7 +318,7 @@ inline int build_channel_array(const char *device_dir,
|
||||
free(filename);
|
||||
goto error_close_dir;
|
||||
}
|
||||
fscanf(sysfsfp, "%u", &ret);
|
||||
fscanf(sysfsfp, "%i", &ret);
|
||||
if (ret == 1)
|
||||
(*counter)++;
|
||||
fclose(sysfsfp);
|
||||
@ -350,7 +350,7 @@ inline int build_channel_array(const char *device_dir,
|
||||
ret = -errno;
|
||||
goto error_cleanup_array;
|
||||
}
|
||||
fscanf(sysfsfp, "%u", ¤t_enabled);
|
||||
fscanf(sysfsfp, "%i", ¤t_enabled);
|
||||
fclose(sysfsfp);
|
||||
|
||||
if (!current_enabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user