]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Print MAC address when listing cards
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 26 Jun 2011 20:37:49 +0000 (22:37 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 26 Jun 2011 20:37:49 +0000 (22:37 +0200)
grub-core/net/net.c

index 560fa7a31ca3fc15344a26d938fda61d5fd35aba..34148f52c0da9a5fd5ace7466cf363e98e2b2e13 100644 (file)
@@ -576,9 +576,10 @@ grub_cmd_listcards (struct grub_command *cmd __attribute__ ((unused)),
   struct grub_net_card *card;
   FOR_NET_CARDS(card)
   {
-    grub_printf ("%s ", card->name);
+    char buf[MAX_STR_HWADDR_LEN];
+    hwaddr_to_str (&card->default_address, buf);
+    grub_printf ("%s %s\n", card->name, buf);
   }
-  grub_printf ("\n");
   return GRUB_ERR_NONE;
 }