mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 20:10:18 +03:00
Produce no output unless -v is specified or an error occurs.
This commit is contained in:
@@ -68,7 +68,7 @@ sub pcipnpheaders ($$) {
|
|||||||
$pci_hdr_offset = $pnp_hdr_offset = 0;
|
$pci_hdr_offset = $pnp_hdr_offset = 0;
|
||||||
} else {
|
} else {
|
||||||
printf "PCI header at %#x and PnP header at %#x\n",
|
printf "PCI header at %#x and PnP header at %#x\n",
|
||||||
$pci_hdr_offset, $pnp_hdr_offset;
|
$pci_hdr_offset, $pnp_hdr_offset if $opts{'v'};
|
||||||
}
|
}
|
||||||
if ($pci_hdr_offset > 0) {
|
if ($pci_hdr_offset > 0) {
|
||||||
my ($pci_vendor_id, $pci_device_id);
|
my ($pci_vendor_id, $pci_device_id);
|
||||||
@@ -112,7 +112,7 @@ sub undiheaders ($) {
|
|||||||
or substr($$romref, $undi_hdr_offset, 4) ne 'UNDI') {
|
or substr($$romref, $undi_hdr_offset, 4) ne 'UNDI') {
|
||||||
$undi_hdr_offset = 0;
|
$undi_hdr_offset = 0;
|
||||||
} else {
|
} else {
|
||||||
printf "UNDI header at %#x\n", $undi_hdr_offset;
|
printf "UNDI header at %#x\n", $undi_hdr_offset if $opts{'v'};
|
||||||
}
|
}
|
||||||
if ($undi_hdr_offset > 0) {
|
if ($undi_hdr_offset > 0) {
|
||||||
substr($$romref, $undi_hdr_offset+UNDI_CHKSUM_OFF, 1) = "\x00";
|
substr($$romref, $undi_hdr_offset+UNDI_CHKSUM_OFF, 1) = "\x00";
|
||||||
|
|||||||
Reference in New Issue
Block a user