Changeset 5089
- Timestamp:
- 01/04/08 17:34:36 (11 months ago)
- Files:
-
- i2c-tools/trunk/eeprom/decode-dimms.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
i2c-tools/trunk/eeprom/decode-dimms.pl
r5088 r5089 48 48 use Fcntl qw(:DEFAULT :seek); 49 49 use vars qw($opt_html $opt_body $opt_bodyonly $opt_igncheck $use_sysfs 50 @vendors %decode_callback); 50 @vendors %decode_callback $revision); 51 52 $revision = '$Revision$ ($Date$)'; 53 $revision =~ s/\$\w+: (.*?) \$/$1/g; 54 $revision =~ s/ \([^()]*\)//; 51 55 52 56 @vendors = ( … … 390 394 } 391 395 396 sub printc ($) # print comment 397 { 398 my ($comment) = @_; 399 if ($opt_html) { 400 $comment =~ s/</\</sg; 401 $comment =~ s/>/\>/sg; 402 $comment =~ s/\n/<br>\n/sg; 403 print "<!-- $comment -->\n"; 404 } else { 405 print "# $comment\n"; 406 } 407 } 408 392 409 # Parameter: bytes 0-63 393 410 sub decode_sdr_sdram($) … … 1037 1054 } 1038 1055 1056 printc "$0 version $revision"; 1039 1057 printh 'Memory Serial Presence Detect Decoder', 1040 1058 'By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, 1041 Jean Delvare and others 1042 Version 2.10.2'; 1059 Jean Delvare and others'; 1043 1060 1044 1061
