summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-08-26 17:18:17 -0700
committerKeith Packard <keithp@keithp.com>2013-08-26 17:18:17 -0700
commit7274b77666df9d2cab2854ec1a403d80e5fce73b (patch)
tree550985f519e081e5c6a39a3c9e4fea72b721c6d7
parent4e3955a5b0ac125bd807920c467f959618449fbc (diff)
altos: Use %ld and %lu for MS5607 debug output
The value are 'long', so use the right printf format. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/drivers/ao_ms5607.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/ao_ms5607.c b/src/drivers/ao_ms5607.c
index 7c1acdd1..8b2b6333 100644
--- a/src/drivers/ao_ms5607.c
+++ b/src/drivers/ao_ms5607.c
@@ -223,8 +223,8 @@ ao_ms5607_dump(void)
__xdata struct ao_ms5607_value value;
ao_ms5607_convert(&ao_ms5607_current, &value);
- printf ("Pressure: %8u %8d\n", ao_ms5607_current.pres, value.pres);
- printf ("Temperature: %8u %8d\n", ao_ms5607_current.temp, value.temp);
+ printf ("Pressure: %8lu %8ld\n", ao_ms5607_current.pres, value.pres);
+ printf ("Temperature: %8lu %8ld\n", ao_ms5607_current.temp, value.temp);
printf ("Altitude: %ld\n", ao_pa_to_altitude(value.pres));
}