1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #2496 from gebart/pr/6lowpan-print-addr

sixlowpan: Properly print source address when ENABLE_DEBUG
This commit is contained in:
Cenk Gündoğan 2015-03-02 08:21:42 +01:00
commit 3832fc57f5

View File

@ -890,9 +890,10 @@ uint16_t ipv6_csum(ipv6_hdr_t *ipv6_header, uint8_t *buf, uint16_t len,
uint8_t proto)
{
uint16_t sum = 0;
DEBUG("Calculate checksum over src: %s, dst: %s, len: %04X, buf: %p, proto: %u\n",
DEBUG("Calculate checksum over src: %s, ",
ipv6_addr_to_str(addr_str, IPV6_MAX_ADDR_STR_LEN,
&ipv6_header->srcaddr),
&ipv6_header->srcaddr));
DEBUG("dst: %s, len: %04X, buf: %p, proto: %u\n",
ipv6_addr_to_str(addr_str, IPV6_MAX_ADDR_STR_LEN,
&ipv6_header->destaddr),
len, buf, proto);