diff options
Diffstat (limited to 'com32/hdt/hdt-cli-pxe.c')
-rw-r--r-- | com32/hdt/hdt-cli-pxe.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/com32/hdt/hdt-cli-pxe.c b/com32/hdt/hdt-cli-pxe.c index 1d00cae5..a281d158 100644 --- a/com32/hdt/hdt-cli-pxe.c +++ b/com32/hdt/hdt-cli-pxe.c @@ -41,20 +41,21 @@ void main_show_pxe(int argc __unused, char **argv __unused, { char buffer[81]; memset(buffer, 0, sizeof(81)); + reset_more_printf(); if (hardware->sv->filesystem != SYSLINUX_FS_PXELINUX) { - printf("You are not currently using PXELINUX\n"); + more_printf("You are not currently using PXELINUX\n"); return; } detect_pxe(hardware); - printf("PXE\n"); + more_printf("PXE\n"); if (hardware->is_pxe_valid == false) { - printf(" No valid PXE ROM found\n"); + more_printf(" No valid PXE ROM found\n"); return; } struct s_pxe *p = &hardware->pxe; - printf(" PCI device no: %d \n", p->pci_device_pos); + more_printf(" PCI device no: %d \n", p->pci_device_pos); if (hardware->pci_ids_return_code == -ENOPCIIDS || (p->pci_device == NULL)) { @@ -65,16 +66,16 @@ void main_show_pxe(int argc __unused, char **argv __unused, snprintf(buffer, sizeof(buffer), " PCI Bus pos. : %02x:%02x.%02x\n", p->pci_bus, p->pci_dev, p->pci_func); - printf(buffer); + more_printf(buffer); } else { snprintf(buffer, sizeof(buffer), " Manufacturer : %s \n", p->pci_device->dev_info->vendor_name); - printf(buffer); + more_printf(buffer); snprintf(buffer, sizeof(buffer), " Product : %s \n", p->pci_device->dev_info->product_name); - printf(buffer); + more_printf(buffer); } - printf(" Addresses : %d.%d.%d.%d @ %s\n", p->ip_addr[0], + more_printf(" Addresses : %d.%d.%d.%d @ %s\n", p->ip_addr[0], p->ip_addr[1], p->ip_addr[2], p->ip_addr[3], p->mac_addr); } |