Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {