- Timestamp:
- 11/01/09 12:05:07 (3 years ago)
- Children:
- 079f92a31281573b8a7b152b1730e7a349ac6365
- Parents:
- a7f6dd2b9fc3f8ad29a05135c99288156961329b
- git-author:
- Pierre-Alexandre Meyer <pierre@mouraf.org> / 2009-10-31T22:32:26Z-0700
- git-committer:
- Erwan Velu <erwan.velu@free.fr> / 2009-11-01T13:05:07Z+0100
- Files:
-
- 1 modified
-
com32/hdt/hdt-cli-pxe.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
com32/hdt/hdt-cli-pxe.c
ra9d9ad rdff898 42 42 char buffer[81]; 43 43 memset(buffer, 0, sizeof(81)); 44 reset_more_printf(); 44 45 if (hardware->sv->filesystem != SYSLINUX_FS_PXELINUX) { 45 printf("You are not currently using PXELINUX\n");46 more_printf("You are not currently using PXELINUX\n"); 46 47 return; 47 48 } 48 49 49 50 detect_pxe(hardware); 50 printf("PXE\n");51 more_printf("PXE\n"); 51 52 if (hardware->is_pxe_valid == false) { 52 printf(" No valid PXE ROM found\n");53 more_printf(" No valid PXE ROM found\n"); 53 54 return; 54 55 } 55 56 56 57 struct s_pxe *p = &hardware->pxe; 57 printf(" PCI device no: %d \n", p->pci_device_pos);58 more_printf(" PCI device no: %d \n", p->pci_device_pos); 58 59 59 60 if (hardware->pci_ids_return_code == -ENOPCIIDS || … … 66 67 " PCI Bus pos. : %02x:%02x.%02x\n", p->pci_bus, 67 68 p->pci_dev, p->pci_func); 68 printf(buffer);69 more_printf(buffer); 69 70 } else { 70 71 snprintf(buffer, sizeof(buffer), " Manufacturer : %s \n", 71 72 p->pci_device->dev_info->vendor_name); 72 printf(buffer);73 more_printf(buffer); 73 74 snprintf(buffer, sizeof(buffer), " Product : %s \n", 74 75 p->pci_device->dev_info->product_name); 75 printf(buffer);76 more_printf(buffer); 76 77 } 77 printf(" Addresses : %d.%d.%d.%d @ %s\n", p->ip_addr[0],78 more_printf(" Addresses : %d.%d.%d.%d @ %s\n", p->ip_addr[0], 78 79 p->ip_addr[1], p->ip_addr[2], p->ip_addr[3], p->mac_addr); 79 80 }
