tools:iio:iio_utils: check amount of matches
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:39:59 +0000 (14:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 16:42:34 +0000 (17:42 +0100)
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 <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_utils.c

Simple merge