X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=iftop-dump.c;h=7e438d7f33ef54aa0fa8577d1022a69e3df7a198;hb=refs%2Fheads%2Fpps-accounting;hp=070f5bb866edb461936bad5134d1a970e5e7b391;hpb=cd1db5a0a5c698b647e554a003c7e48b5db695f5;p=iftop.git diff --git a/iftop-dump.c b/iftop-dump.c index 070f5bb..7e438d7 100644 --- a/iftop-dump.c +++ b/iftop-dump.c @@ -419,10 +419,7 @@ void packet_init() { } if(have_hw_addr) { - fprintf(stderr, "MAC address is:"); - for (i = 0; i < 6; ++i) - fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned int)if_hw_addr[i]); - fprintf(stderr, "\n"); + fprintf(stderr, "MAC address is: %s\n", ether_ntoa(if_hw_addr)); } // exit(0);