iio:magnetometer:mag3110: Fix output of decimal digits in show_int_plus_micros()
authorPeter Meerwald <pmeerw@pmeerw.net>
Wed, 1 Oct 2014 20:59:00 +0000 (21:59 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Feb 2014 10:06:27 +0000 (10:06 +0000)
commit71bd89454d4cd6a4d0304aa8c3304ed8b0a294dc
tree93341e9b0b90f9e4c60e94de978f990885cf7d98
parentf25330f63edd8e2d02ca76ed43fc852d4d76bb12
iio:magnetometer:mag3110: Fix output of decimal digits in show_int_plus_micros()

need to print leading zeros, hence "%d.%06d"

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/mag3110.c