lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] LWIP_DEBUG in the ethernet_input function


From: Martin Velek
Subject: [lwip-devel] LWIP_DEBUG in the ethernet_input function
Date: Tue, 25 Aug 2009 14:21:12 +0200

Hello,

in a file lwip-1.3.1\src\netif\etharp.c is in the function
ethernet_input debug information with:

 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE,
    ("ethernet_input: dest:%02x:%02x:%02x:%02x:%02x:%02x,
src:%02x:%02x:%02x:%02x:%02x:%02x, type:%2hx\n",
     (unsigned)ethhdr->dest.addr[0], (unsigned)ethhdr->dest.addr[1],
(unsigned)ethhdr->dest.addr[2],
     (unsigned)ethhdr->dest.addr[3], (unsigned)ethhdr->dest.addr[4],
(unsigned)ethhdr->dest.addr[5],
     (unsigned)ethhdr->src.addr[0], (unsigned)ethhdr->src.addr[1],
(unsigned)ethhdr->src.addr[2],
     (unsigned)ethhdr->src.addr[3], (unsigned)ethhdr->src.addr[4],
(unsigned)ethhdr->src.addr[5],
     (unsigned)htons(ethhdr->type)));

I am using non-standard sprintf implementation and this "harcoded"
string gives me errors. Could you replace it with
U8_F, S8_F,..... as defined in cc.h?

Thank you.

Regards,
Martin Velek




reply via email to

[Prev in Thread] Current Thread [Next in Thread]