mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
net/icmpv6/icmpv6_rnotify.c: Correct a bad index in debug output.
This commit is contained in:
committed by
Gregory Nutt
parent
338f09acfc
commit
0008ff33b3
@@ -135,7 +135,7 @@ static void icmpv6_setaddresses(FAR struct net_driver_s *dev,
|
|||||||
|
|
||||||
ninfo("prefix=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
ninfo("prefix=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
||||||
ntohs(prefix[0]), ntohs(prefix[1]), ntohs(prefix[2]),
|
ntohs(prefix[0]), ntohs(prefix[1]), ntohs(prefix[2]),
|
||||||
ntohs(prefix[3]), ntohs(prefix[4]), ntohs(prefix[6]),
|
ntohs(prefix[3]), ntohs(prefix[4]), ntohs(prefix[5]),
|
||||||
ntohs(prefix[6]), ntohs(prefix[7]));
|
ntohs(prefix[6]), ntohs(prefix[7]));
|
||||||
ninfo("IP address=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
ninfo("IP address=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
||||||
ntohs(dev->d_ipv6addr[0]), ntohs(dev->d_ipv6addr[1]),
|
ntohs(dev->d_ipv6addr[0]), ntohs(dev->d_ipv6addr[1]),
|
||||||
|
|||||||
Reference in New Issue
Block a user