altos: Fix some printf long values for cc1111
authorKeith Packard <keithp@keithp.com>
Fri, 15 Oct 2021 05:45:45 +0000 (22:45 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 15 Oct 2021 05:45:45 +0000 (22:45 -0700)
Just a couple of long values passed to printf which needs %ld

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_lco.c
src/drivers/ao_quadrature.c

index e892c8c045d3ad584edfc87c5149750f4935f7bf..eb7d131f0076d3b0dcccb8b02ae3a653a002d0c4 100644 (file)
@@ -217,7 +217,7 @@ ao_lco_input(void)
 
        for (;;) {
                ao_event_get(&event);
-               PRINTD("event type %d unit %d value %d\n",
+               PRINTD("event type %d unit %d value %ld\n",
                       event.type, event.unit, event.value);
                switch (event.type) {
                case AO_EVENT_QUADRATURE:
index 250e035fc3171f167c438da9ef92ba35e8668cd5..d56c3cc378948710f91be32284487aa0c38846aa 100644 (file)
@@ -192,7 +192,7 @@ ao_quadrature_test(void)
                        t = ao_quadrature_step[q];
                        printf("step %3d ", t);
 #endif
-                       printf ("count %3d state %2x\n", c, s);
+                       printf ("count %3ld state %2x\n", c, s);
                        flush();
                }
        }