diff options
author | Toralf Förster <toralf.foerster@gmx.de> | 2014-05-24 14:25:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-05-25 12:09:37 +0100 |
commit | 34683a5c6e0ffaa61528ff71c283efe3063cc53f (patch) | |
tree | fb2c89a4498efd0bf0375264d41ff89503a87ea6 | |
parent | a91a73c8b39a6b8bcc53fafa5372c65387c81233 (diff) |
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>
-rw-r--r-- | drivers/staging/iio/Documentation/iio_utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index 2064839ef2cd..a9cfc06edb01 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h @@ -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) { |