From ea6840d4abf1c2f1960ec7dcd4e1a01dc9d57c6c Mon Sep 17 00:00:00 2001 From: Jakub Jermar Date: Mon, 25 Jun 2018 07:58:42 +0200 Subject: [PATCH] Use a macro to print the MAC address --- uspace/drv/nic/virtio-net/virtio-net.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/uspace/drv/nic/virtio-net/virtio-net.c b/uspace/drv/nic/virtio-net/virtio-net.c index 714c3ddaa..617b3ec0e 100644 --- a/uspace/drv/nic/virtio-net/virtio-net.c +++ b/uspace/drv/nic/virtio-net/virtio-net.c @@ -387,9 +387,7 @@ static errno_t virtio_net_initialize(ddf_dev_t *dev) if (rc != EOK) goto fail; - ddf_msg(LVL_NOTE, "MAC address: " PRIMAC, - nic_addr.address[0], nic_addr.address[1], nic_addr.address[2], - nic_addr.address[3], nic_addr.address[4], nic_addr.address[5]); + ddf_msg(LVL_NOTE, "MAC address: " PRIMAC, ARGSMAC(nic_addr.address)); /* * Enable IRQ -- 2.11.4.GIT