spi: spidev_test: check error
authorJoshua Clayton <stillcompiling@gmail.com>
Wed, 18 Nov 2015 22:30:41 +0000 (14:30 -0800)
committerMark Brown <broonie@kernel.org>
Mon, 23 Nov 2015 14:54:01 +0000 (14:54 +0000)
commita20874f78be633b9e3a505d5f191735188b110a5
treefd20e39027a9f7526e23f2d767ecdeab8e6eeb87
parent983b27886a3c7f6eff4e987ddba932da74703f4e
spi: spidev_test: check error

Check the result of sscanf to verify a result was found.
report and error and abort if pattern was not found.

Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
tools/spi/spidev_test.c