From ad37d6af3b9c6b838632730dbdcd4e2fa407ef8d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 19 Jul 2012 12:36:54 +0000 Subject: [PATCH] Read EEPROM contents before printing headers. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6061 7894878c-1315-0410-8ee3-d5d059ff63e0 --- eeprom/decode-dimms | 28 ++++++++++++++-------------- 1 file 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 "\n", - "\n", - "\t\n", - "\tPC DIMM Serial Presence Detect Tester/Decoder Output\n", - "\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 "\n", + "\n", + "\t\n", + "\tPC DIMM Serial Presence Detect Tester/Decoder Output\n", + "\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}};