summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2007-07-17 02:59:48 +0200
committerMichael Brown2007-07-17 02:59:48 +0200
commitcb237819ca158300a7ff83d40b29a1ac62743c0d (patch)
tree0582ba36708bf2253a2a7f78af76847ac2aba9ed /src/util
parentRemoved dead code identified by symcheck (diff)
downloadipxe-cb237819ca158300a7ff83d40b29a1ac62743c0d.tar.gz
ipxe-cb237819ca158300a7ff83d40b29a1ac62743c0d.tar.xz
ipxe-cb237819ca158300a7ff83d40b29a1ac62743c0d.zip
Produce no output unless -v is specified or an error occurs.
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/makerom.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/makerom.pl b/src/util/makerom.pl
index a7d5cc4c..aed3a569 100755
--- a/src/util/makerom.pl
+++ b/src/util/makerom.pl
@@ -68,7 +68,7 @@ sub pcipnpheaders ($$) {
$pci_hdr_offset = $pnp_hdr_offset = 0;
} else {
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) {
my ($pci_vendor_id, $pci_device_id);
@@ -112,7 +112,7 @@ sub undiheaders ($) {
or substr($$romref, $undi_hdr_offset, 4) ne 'UNDI') {
$undi_hdr_offset = 0;
} 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) {
substr($$romref, $undi_hdr_offset+UNDI_CHKSUM_OFF, 1) = "\x00";