Commit d0fc17b6 authored by Aurelio Colosimo's avatar Aurelio Colosimo

trivial: fix diagnositic output

parent 93f10e0b
......@@ -63,5 +63,6 @@ void pp_timed_printf(char *fmt, ...)
va_start(args, fmt);
pp_vsprintf(buf, fmt, args);
va_end(args);
pp_printf("%09d.%03d %s", t.seconds, t.nanoseconds / 1000000, buf);
pp_printf("%09d.%03d %s", (int)t.seconds,
(int)t.nanoseconds / 1000000, buf);
}
......@@ -17,12 +17,13 @@ int pp_state_machine(struct pp_instance *ppi, uint8_t *packet, int plen)
{
struct pp_state_table_item *ip;
int state, err;
#ifdef PPSI_MASTER__
if ((plen > 0))
pp_printf("RECV %02d %d.%d %s\n", plen,
ppi->last_rcv_time.seconds,
ppi->last_rcv_time.nanoseconds,pp_msg_names[packet[0] & 0x0f]);
#endif
if (plen > 0)
PP_PRINTF("RECV %02d %d.%d %s\n", plen,
(int)ppi->last_rcv_time.seconds,
(int)ppi->last_rcv_time.nanoseconds,
pp_msg_names[packet[0] & 0x0f]);
if (packet)
msg_unpack_header(ppi, packet);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment