mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
Fixed mis-formatted printfs
This commit is contained in:
parent
7bf4fa4bff
commit
78450aeab6
@ -70,7 +70,7 @@ tcpip_handler(void)
|
|||||||
leds_on(LEDS_RED);
|
leds_on(LEDS_RED);
|
||||||
len = uip_datalen();
|
len = uip_datalen();
|
||||||
memcpy(buf, uip_appdata, len);
|
memcpy(buf, uip_appdata, len);
|
||||||
PRINTF("%u bytes from [", len, *(uint16_t *)buf);
|
PRINTF("%u bytes from [", len);
|
||||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||||
PRINTF("]:%u\n", UIP_HTONS(UIP_UDP_BUF->srcport));
|
PRINTF("]:%u\n", UIP_HTONS(UIP_UDP_BUF->srcport));
|
||||||
#if SERVER_REPLY
|
#if SERVER_REPLY
|
||||||
|
@ -77,7 +77,7 @@ tcpip_handler(void)
|
|||||||
leds_on(LEDS_RED);
|
leds_on(LEDS_RED);
|
||||||
len = uip_datalen();
|
len = uip_datalen();
|
||||||
memcpy(buf, uip_appdata, len);
|
memcpy(buf, uip_appdata, len);
|
||||||
PRINTF("%u bytes from [", len, *(uint16_t *)buf);
|
PRINTF("%u bytes from [", len);
|
||||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||||
PRINTF("]:%u", UIP_HTONS(UIP_UDP_BUF->srcport));
|
PRINTF("]:%u", UIP_HTONS(UIP_UDP_BUF->srcport));
|
||||||
PRINTF(" V=%u", *buf);
|
PRINTF(" V=%u", *buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user