Oleksandr Kravchenko d9a0134e7a iio: core: Avoid double minus in sysfs output
This patch fixes the issue with double minus in output when
reading channels from sysfs for IIO_VAL_INT_PLUS_MICRO and
IIO_VAL_INT_PLUS_NANO cases. Until this patch if val and val2
both are negatives output string contains "--" before
digits. It is result of "-%d..." in sprintf() format.

Signed-off-by: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-08-03 18:41:19 +01:00
..
2013-07-26 08:57:56 -04:00
2013-07-18 12:48:40 -07:00
2013-06-27 13:42:16 -04:00
2013-07-02 14:23:01 -07:00
2013-07-23 16:01:28 -07:00
2013-07-10 14:46:40 -07:00
2013-07-26 11:20:10 -07:00
2013-07-26 11:36:12 -07:00
2013-07-02 11:44:19 -07:00
2013-06-28 13:01:40 +02:00
2013-07-22 09:34:46 +08:00
2013-07-10 14:50:08 -07:00
2013-07-23 14:38:20 -07:00
2013-07-10 14:50:58 -07:00