Just a couple of long values passed to printf which needs %ld
Signed-off-by: Keith Packard <keithp@keithp.com>
for (;;) {
ao_event_get(&event);
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:
event.type, event.unit, event.value);
switch (event.type) {
case AO_EVENT_QUADRATURE:
t = ao_quadrature_step[q];
printf("step %3d ", t);
#endif
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);