From 078b6371d72e6753fad74596e8bd274c753f7aaa Mon Sep 17 00:00:00 2001 From: "Lay, Kuan Loon" Date: Tue, 20 Oct 2015 18:41:56 +0800 Subject: [PATCH] iio-example: printf take extra argument Signed-off-by: Lay, Kuan Loon Signed-off-by: Brendan Le Foll --- examples/iio_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/iio_driver.c b/examples/iio_driver.c index 810a001..5360171 100755 --- a/examples/iio_driver.c +++ b/examples/iio_driver.c @@ -43,7 +43,7 @@ printword(uint16_t input, mraa_iio_channel *chan) } else { res = input; } - printf(" value = %05f\n", chan->index, (float)res); + printf(" value = %05f\n", (float)res); } mraa_iio_context iio_device0; -- 2.7.4