]> gitweb.fperrin.net Git - iftop.git/blobdiff - iftop-dump.c
gitignore
[iftop.git] / iftop-dump.c
index 070f5bb866edb461936bad5134d1a970e5e7b391..7e438d7f33ef54aa0fa8577d1022a69e3df7a198 100644 (file)
@@ -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);