summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorLeon M. George <leon@georgemail.eu>2017-05-12 14:12:34 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-05-12 15:51:16 +0200
commita2d8bf66186df66b6e2b645e59c23f8ae2be49c4 (patch)
tree6fc46a4bdcc88fbf031ec2ddd35144007c7e3dda /src
parenta9e9bc4c67ac9fa8aecf5f20954a58093705831b (diff)
dhcpv4: display two hex digits per octet in syslog
Signed-off-by: Leon M. George <leon@georgemail.eu>
Diffstat (limited to 'src')
-rw-r--r--src/dhcpv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c
index 81e537d..21d94f2 100644
--- a/src/dhcpv4.c
+++ b/src/dhcpv4.c
@@ -378,7 +378,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 +502,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],