Fix compile error when enable DEBUG_SDU and DEBUG_HCI.
Replace deprecated NIPQUAD marco to C code.
Signed-off-by: Macpaul Lin <macpaul.from.taiwan@gmail.com>
Cc: Macpaul Lin <macpaul@gmail.com>
Cc: Paul Stewart <pstew@chromium.org>
Cc: Ben Chan <benchan@chromium.org>
Cc: Sage Ahn <syahn@gctsemi.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
if (!(data[0] == 0xff && data[1] == 0xff)) {
if (protocol == ETH_P_IP) {
printk(KERN_DEBUG " src=%u.%u.%u.%u\n",
- NIPQUAD(ih->saddr));
+ ((unsigned char *)&(ih->saddr))[0],
+ ((unsigned char *)&(ih->saddr))[1],
+ ((unsigned char *)&(ih->saddr))[2],
+ ((unsigned char *)&(ih->saddr))[3]);
} else if (protocol == ETH_P_IPV6) {
#ifdef NIP6
printk(KERN_DEBUG " src=%x:%x:%x:%x:%x:%x:%x:%x\n",