aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2012-10-22 08:33:02 +0000
committerJean Delvare <jdelvare@suse.de>2012-10-22 08:33:02 +0000
commitca85c60d83a6df3abf74708135a11ad2b4e8cade (patch)
tree29194d9097a4e27afc6e58403131f1255bbecdc0
parent8e760a90efa74787456da7094da043e616e29e67 (diff)
downloadi2c-tools-ca85c60d83a6df3abf74708135a11ad2b4e8cade.tar.gz
Print a space before "MHz" to improve readability.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6074 7894878c-1315-0410-8ee3-d5d059ff63e0
-rwxr-xr-xeeprom/decode-dimms14
1 files changed, 7 insertions, 7 deletions
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index 16a20b1..67506dd 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -846,7 +846,7 @@ sub decode_ddr_sdram($)
$pcclk += 100 if ($pcclk % 100) >= 50; # Round properly
$pcclk = $pcclk - ($pcclk % 100);
$ddrclk = int ($ddrclk);
- printl("Maximum module speed", "${ddrclk}MHz (PC${pcclk})");
+ printl("Maximum module speed", "$ddrclk MHz (PC${pcclk})");
#size computation
my $k = 0;
@@ -1037,7 +1037,7 @@ sub decode_ddr2_sdram($)
# Round down to comply with Jedec
$pcclk = $pcclk - ($pcclk % 100);
$ddrclk = int ($ddrclk);
- printl("Maximum module speed", "${ddrclk}MHz (PC2-${pcclk})");
+ printl("Maximum module speed", "$ddrclk MHz (PC2-${pcclk})");
#size computation
my $k = 0;
@@ -1195,7 +1195,7 @@ sub decode_ddr3_sdram($)
my $tbits = 1 << (($bytes->[8] & 7) + 3);
my $pcclk = int ($ddrclk * $tbits / 8);
$ddrclk = int ($ddrclk);
- printl("Maximum module speed", "${ddrclk}MHz (PC3-${pcclk})");
+ printl("Maximum module speed", "$ddrclk MHz (PC3-${pcclk})");
# Size computation
@@ -1502,9 +1502,9 @@ sub decode_intel_spec_freq($)
prints("Intel Specification");
- if ($bytes->[126] == 0x66) { $temp = "66MHz"; }
- elsif ($bytes->[126] == 100) { $temp = "100MHz or 133MHz"; }
- elsif ($bytes->[126] == 133) { $temp = "133MHz"; }
+ if ($bytes->[126] == 0x66) { $temp = "66 MHz"; }
+ elsif ($bytes->[126] == 100) { $temp = "100 MHz or 133 MHz"; }
+ elsif ($bytes->[126] == 133) { $temp = "133 MHz"; }
else { $temp = "Undefined!"; }
printl("Frequency", $temp);
@@ -1520,7 +1520,7 @@ sub decode_intel_spec_freq($)
if ($bytes->[127] & 128) { $temp .= "CLK 0 Connected\n"; }
if (($bytes->[127] & 192) == 192) { $temp .= "Double-sided DIMM\n"; }
elsif (($bytes->[127] & 192) != 0) { $temp .= "Single-sided DIMM\n"; }
- printl("Details for 100MHz Support", $temp);
+ printl("Details for 100 MHz Support", $temp);
}
# Read various hex dump style formats: hexdump, hexdump -C, i2cdump, eeprog