From 0034b2a04c221946ea5bd0a0dbef7fafa76b85ec Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Sun, 19 Apr 2009 09:54:14 +0200 Subject: [PATCH] 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. --- com32/hdt/hdt-cli-pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"); + } } } -- 2.7.4