From: Hartmut Knaack Date: Sun, 31 May 2015 12:39:59 +0000 (+0200) Subject: tools:iio:iio_utils: check amount of matches X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~256^2~40 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc8b5d6e633f8e54f70594d0be87aaf401ea0559;p=pandora-kernel.git tools:iio:iio_utils: check amount of matches fscanf() usually returns the number of input items successfully matched and assigned, which can be fewer than provided (or even zero). Add a check in iioutils_get_type() to make sure all items are matched. Signed-off-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed