From: Erwan Velu Date: Sun, 19 Apr 2009 07:54:14 +0000 (+0200) Subject: hdt: MAC Address should only be displayed on the PXE Device X-Git-Tag: syslinux-3.80-pre1~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0034b2a04c221946ea5bd0a0dbef7fafa76b85ec;p=platform%2Fupstream%2Fsyslinux.git hdt: MAC Address should only be displayed on the PXE Device Impact: MAC address were shown on invalid devices Prior to that commit, the mac address of the PXE booted network card was displayed on every pci devices.... weird. --- diff --git a/com32/hdt/hdt-cli-pci.c b/com32/hdt/hdt-cli-pci.c index 15ea017..aa6347a 100644 --- a/com32/hdt/hdt-cli-pci.c +++ b/com32/hdt/hdt-cli-pci.c @@ -135,10 +135,11 @@ static void show_pci_device(int argc, char **argv, printf("PCI Func : %02d\n", func); if (hardware->is_pxe_valid == true) { - printf("Mac Address : %s\n", hardware->pxe.mac_addr); if ((hardware->pxe.pci_device != NULL) - && (hardware->pxe.pci_device == pci_device)) + && (hardware->pxe.pci_device == pci_device)) { + printf("Mac Address : %s\n", hardware->pxe.mac_addr); printf("PXE : Current boot device\n"); + } } }