Browse Source

decode-dimms: Encode "degrees" to HTML degree symbol

git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6231 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.1.1
Jean Delvare 12 years ago
parent
commit
95674a88a5
  1. 1
      CHANGES
  2. 3
      eeprom/decode-dimms

1
CHANGES

@ -13,6 +13,7 @@ SVN HEAD
Fix DDR3 tRAS decoding Fix DDR3 tRAS decoding
Fix DDR3 core timings rounding Fix DDR3 core timings rounding
Round down PC3 numbers to comply with Jedec Round down PC3 numbers to comply with Jedec
Encode "degrees" to HTML degree symbol
i2cdetect: Clarify the SMBus commands used for probing by default i2cdetect: Clarify the SMBus commands used for probing by default
i2c-dev.h: Minimize differences with kernel flavor i2c-dev.h: Minimize differences with kernel flavor
i2c-stub-from-dump: Be more tolerant on input dump format i2c-stub-from-dump: Be more tolerant on input dump format

3
eeprom/decode-dimms

@ -408,6 +408,7 @@ sub html_encode($)
my $text = shift; my $text = shift;
$text =~ s/</\&lt;/sg; $text =~ s/</\&lt;/sg;
$text =~ s/>/\&gt;/sg; $text =~ s/>/\&gt;/sg;
$text =~ s/ degrees C/\&deg;C/sg;
$text =~ s/\n/<br>\n/sg; $text =~ s/\n/<br>\n/sg;
return $text; return $text;
} }
@ -1286,7 +1287,7 @@ sub decode_ddr3_sdram($)
printl("RZQ/6 supported?", ($bytes->[30] & 1) ? "Yes" : "No"); printl("RZQ/6 supported?", ($bytes->[30] & 1) ? "Yes" : "No");
printl("RZQ/7 supported?", ($bytes->[30] & 2) ? "Yes" : "No"); printl("RZQ/7 supported?", ($bytes->[30] & 2) ? "Yes" : "No");
printl("DLL-Off Mode supported?", ($bytes->[30] & 128) ? "Yes" : "No"); printl("DLL-Off Mode supported?", ($bytes->[30] & 128) ? "Yes" : "No");
printl("Operating temperature range", sprintf "0-%dC",
printl("Operating temperature range", sprintf "0-%d degrees C",
($bytes->[31] & 1) ? 95 : 85); ($bytes->[31] & 1) ? 95 : 85);
printl("Refresh Rate in extended temp range", printl("Refresh Rate in extended temp range",
($bytes->[31] & 2) ? "2X" : "1X"); ($bytes->[31] & 2) ? "2X" : "1X");

Loading…
Cancel
Save