X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fdhcpv4.c;h=e1f0df6f488eeae745844f9d9e347e6cf21f6e76;hp=81e537d3ddbb8f4b7bc6e770e213c228ced1819f;hb=3e4c8ad1a33abfb5f0e5886353ca4e3f2dbfedc1;hpb=e437ce9422c2f92752be5b6b3fd453e099a98a7e diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 81e537d..e1f0df6 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -138,8 +138,6 @@ int setup_dhcpv4_interface(struct interface *iface, bool enable) iface->dhcpv4_end.s_addr = end | htonl(12); } } - - } /* Parse static entries */ @@ -378,7 +376,7 @@ static void handle_dhcpv4(void *addr, void *data, size_t len, */ } - syslog(LOG_WARNING, "received %s from %x:%x:%x:%x:%x:%x", + syslog(LOG_WARNING, "received %s from %02x:%02x:%02x:%02x:%02x:%02x", dhcpv4_msg_to_string(reqmsg), req->chaddr[0],req->chaddr[1],req->chaddr[2], req->chaddr[3],req->chaddr[4],req->chaddr[5]); @@ -502,7 +500,7 @@ static void handle_dhcpv4(void *addr, void *data, size_t len, * reply is send directly to IP, * MAC is assumed to be the same as the request */ - syslog(LOG_WARNING, "sending %s to %x:%x:%x:%x:%x:%x - %s", + syslog(LOG_WARNING, "sending %s to %02x:%02x:%02x:%02x:%02x:%02x - %s", dhcpv4_msg_to_string(msg), req->chaddr[0],req->chaddr[1],req->chaddr[2], req->chaddr[3],req->chaddr[4],req->chaddr[5],