Browse Source

Produce no output unless -v is specified or an error occurs.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
cb237819ca
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/util/makerom.pl

+ 2
- 2
src/util/makerom.pl View File

68
 		$pci_hdr_offset = $pnp_hdr_offset = 0;
68
 		$pci_hdr_offset = $pnp_hdr_offset = 0;
69
 	} else {
69
 	} else {
70
 		printf "PCI header at %#x and PnP header at %#x\n",
70
 		printf "PCI header at %#x and PnP header at %#x\n",
71
-			$pci_hdr_offset, $pnp_hdr_offset;
71
+			$pci_hdr_offset, $pnp_hdr_offset if $opts{'v'};
72
 	}
72
 	}
73
 	if ($pci_hdr_offset > 0) {
73
 	if ($pci_hdr_offset > 0) {
74
 		my ($pci_vendor_id, $pci_device_id);
74
 		my ($pci_vendor_id, $pci_device_id);
112
 		or substr($$romref, $undi_hdr_offset, 4) ne 'UNDI') {
112
 		or substr($$romref, $undi_hdr_offset, 4) ne 'UNDI') {
113
 		$undi_hdr_offset = 0;
113
 		$undi_hdr_offset = 0;
114
 	} else {
114
 	} else {
115
-		printf "UNDI header at %#x\n", $undi_hdr_offset;
115
+		printf "UNDI header at %#x\n", $undi_hdr_offset if $opts{'v'};
116
 	}
116
 	}
117
 	if ($undi_hdr_offset > 0) {
117
 	if ($undi_hdr_offset > 0) {
118
 		substr($$romref, $undi_hdr_offset+UNDI_CHKSUM_OFF, 1) = "\x00";
118
 		substr($$romref, $undi_hdr_offset+UNDI_CHKSUM_OFF, 1) = "\x00";

Loading…
Cancel
Save