Commit 34683a5c authored by Toralf Förster's avatar Toralf Förster Committed by Jonathan Cameron

fix format string missmatch in staging/iio/Documentation/iio_utils.h

spotted by cppcheck
Signed-off-by: default avatarToralf Förster <toralf.foerster@gmx.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent a91a73c8
......@@ -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", &current_enabled);
fscanf(sysfsfp, "%i", &current_enabled);
fclose(sysfsfp);
if (!current_enabled) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment