diff options
author | Jean Delvare <jdelvare@suse.de> | 2012-07-19 12:36:54 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2012-07-19 12:36:54 +0000 |
commit | ad37d6af3b9c6b838632730dbdcd4e2fa407ef8d (patch) | |
tree | 6c76290e2b1511597cccbd0f026391c65c3c747c | |
parent | cdab97639c8787e8709bff50d6637972c95ff66f (diff) | |
download | i2c-tools-ad37d6af3b9c6b838632730dbdcd4e2fa407ef8d.tar.gz |
Read EEPROM contents before printing headers.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6061 7894878c-1315-0410-8ee3-d5d059ff63e0
-rwxr-xr-x | eeprom/decode-dimms | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index ff66d45..20045a6 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -1707,20 +1707,6 @@ EOF push @dimm, { eeprom => basename($_), file => $_ } if $use_hexdump; } -if ($opt_html && !$opt_bodyonly) { - print "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n", - "<html><head>\n", - "\t<meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n", - "\t<title>PC DIMM Serial Presence Detect Tester/Decoder Output</title>\n", - "</head><body>\n"; -} - -printc("decode-dimms version $revision"); -printh('Memory Serial Presence Detect Decoder', -'By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, -Jean Delvare, Trent Piepho and others'); - - # From a sysfs device path and an attribute name, return the attribute # value, or undef (stolen from sensors-detect) sub sysfs_device_attribute @@ -1816,6 +1802,20 @@ if (!$opt_igncheck) { } } + +if ($opt_html && !$opt_bodyonly) { + print "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n", + "<html><head>\n", + "\t<meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n", + "\t<title>PC DIMM Serial Presence Detect Tester/Decoder Output</title>\n", + "</head><body>\n"; +} + +printc("decode-dimms version $revision"); +printh('Memory Serial Presence Detect Decoder', +'By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, +Jean Delvare, Trent Piepho and others'); + # Process the valid entries for $current (0 .. $#dimm) { my @bytes = @{$dimm[$current]->{bytes}}; |