Fixed mis-formatted printfs

This commit is contained in:
George Oikonomou 2012-03-16 18:00:58 +00:00
parent 7bf4fa4bff
commit 78450aeab6
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ tcpip_handler(void)
leds_on(LEDS_RED);
len = uip_datalen();
memcpy(buf, uip_appdata, len);
PRINTF("%u bytes from [", len, *(uint16_t *)buf);
PRINTF("%u bytes from [", len);
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
PRINTF("]:%u\n", UIP_HTONS(UIP_UDP_BUF->srcport));
#if SERVER_REPLY

View file

@ -77,7 +77,7 @@ tcpip_handler(void)
leds_on(LEDS_RED);
len = uip_datalen();
memcpy(buf, uip_appdata, len);
PRINTF("%u bytes from [", len, *(uint16_t *)buf);
PRINTF("%u bytes from [", len);
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
PRINTF("]:%u", UIP_HTONS(UIP_UDP_BUF->srcport));
PRINTF(" V=%u", *buf);