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

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>

authored by

Toralf Förster and committed by
Jonathan Cameron
34683a5c a91a73c8

+2 -2
+2 -2
drivers/staging/iio/Documentation/iio_utils.h
··· 318 318 free(filename); 319 319 goto error_close_dir; 320 320 } 321 - fscanf(sysfsfp, "%u", &ret); 321 + fscanf(sysfsfp, "%i", &ret); 322 322 if (ret == 1) 323 323 (*counter)++; 324 324 fclose(sysfsfp); ··· 350 350 ret = -errno; 351 351 goto error_cleanup_array; 352 352 } 353 - fscanf(sysfsfp, "%u", &current_enabled); 353 + fscanf(sysfsfp, "%i", &current_enabled); 354 354 fclose(sysfsfp); 355 355 356 356 if (!current_enabled) {