altos: Fix printf format mis-matches
[fw/altos] / src / drivers / ao_mma655x.c
index b0217368692fb7939ce391663aa815f4aa46132b..4c24e98b71c1e432883f32703a90e2f569d16ce8 100644 (file)
@@ -25,7 +25,7 @@
 #define DEBUG_LOW      1
 #define DEBUG_HIGH     2
 #if 1
-#define PRINTD(l, ...) do { if (DEBUG & (l)) { printf ("\r%5u %s: ", ao_tick_count, __func__); printf(__VA_ARGS__); flush(); } } while(0)
+#define PRINTD(l, ...) do { if (DEBUG & (l)) { printf ("\r%5lu %s: ", (unsigned long) ao_tick_count, __func__); printf(__VA_ARGS__); flush(); } } while(0)
 #else
 #define PRINTD(l,...) 
 #endif