]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
bug #29105: Review printf formatters: added X8_F to cc.h and use it in etharp.c
authorgoldsimon <goldsimon>
Mon, 8 Mar 2010 17:04:27 +0000 (17:04 +0000)
committergoldsimon <goldsimon>
Mon, 8 Mar 2010 17:04:27 +0000 (17:04 +0000)
UPGRADING
src/netif/etharp.c

index 5a3ef518606e95603354c6959583247c7c763f21..2286b345ff669bbfc9f02bbb5f363517dd4e9c89 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -58,6 +58,8 @@ with newer versions.
   * Added define LWIP_RAND() for lwip-wide randomization (needs to be defined
     in cc.h, e.g. used by igmp)
 
+  * Added printf-formatter X8_F to printf u8_t as hex
+
 
 (STABLE-1.3.2)
 
index a88a546fcb0b86d03535319938d98ef617f2253e..ee97819755caa7a67aa00460c797ea64447f30b2 100644 (file)
@@ -1164,7 +1164,7 @@ ethernet_input(struct pbuf *p, struct netif *netif)
   /* points to packet payload, which starts with an Ethernet header */
   ethhdr = (struct eth_hdr *)p->payload;
   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",
+    ("ethernet_input: dest:%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F", src:%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F", type:%"X16_F"\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],