From: Oleksandr Kravchenko Date: Mon, 22 Jul 2013 11:16:00 +0000 (+0100) Subject: iio: core: Avoid double minus in sysfs output X-Git-Tag: v3.12-rc1~183^2~322^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9a0134e7aa048f3de4477d93598974ea8ecae7a;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed