Linus: print format fixes to build with clang on IFC6410

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-20 11:15:12 -07:00
parent 5f3496353c
commit 62eb403e4d
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -506,7 +506,7 @@ RingBuffer::print_info(const char *name)
printf("%s %u/%lu (%u/%u @ %p)\n",
name,
_num_items,
_num_items * _item_size,
(unsigned long)_num_items * _item_size,
_head,
_tail,
_buf);
+2 -2
View File
@@ -445,7 +445,7 @@ MS5611::ioctl(device::px4_dev_handle_t *handlep, int cmd, unsigned long arg)
unsigned ticks = USEC2TICK(1000000 / arg);
/* check against maximum rate */
if (ticks < USEC2TICK(MS5611_CONVERSION_INTERVAL))
if ((long)ticks < USEC2TICK(MS5611_CONVERSION_INTERVAL))
return -EINVAL;
/* update interval for next measurement */
@@ -572,7 +572,7 @@ MS5611::cycle()
* doing pressure measurements at something close to the desired rate.
*/
if ((_measure_phase != 0) &&
(_measure_ticks > USEC2TICK(MS5611_CONVERSION_INTERVAL))) {
((long)_measure_ticks > USEC2TICK(MS5611_CONVERSION_INTERVAL))) {
/* schedule a fresh cycle call when we are ready to measure again */
work_queue(HPWORK,