Sfoglia il codice sorgente

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

tags/v0.9.3
Michael Brown 17 anni fa
parent
commit
cb237819ca
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/util/makerom.pl

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

@@ -68,7 +68,7 @@ sub pcipnpheaders ($$) {
68 68
 		$pci_hdr_offset = $pnp_hdr_offset = 0;
69 69
 	} else {
70 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 73
 	if ($pci_hdr_offset > 0) {
74 74
 		my ($pci_vendor_id, $pci_device_id);
@@ -112,7 +112,7 @@ sub undiheaders ($) {
112 112
 		or substr($$romref, $undi_hdr_offset, 4) ne 'UNDI') {
113 113
 		$undi_hdr_offset = 0;
114 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 117
 	if ($undi_hdr_offset > 0) {
118 118
 		substr($$romref, $undi_hdr_offset+UNDI_CHKSUM_OFF, 1) = "\x00";

Loading…
Annulla
Salva