Changeset 6061

Show
Ignore:
Timestamp:
07/19/12 14:36:54 (10 months ago)
Author:
khali
Message:

Read EEPROM contents before printing headers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/eeprom/decode-dimms

    r6043 r6061  
    17081708} 
    17091709 
    1710 if ($opt_html && !$opt_bodyonly) { 
    1711         print "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n", 
    1712               "<html><head>\n", 
    1713                   "\t<meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n", 
    1714                   "\t<title>PC DIMM Serial Presence Detect Tester/Decoder Output</title>\n", 
    1715                   "</head><body>\n"; 
    1716 } 
    1717  
    1718 printc("decode-dimms version $revision"); 
    1719 printh('Memory Serial Presence Detect Decoder', 
    1720 'By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, 
    1721 Jean Delvare, Trent Piepho and others'); 
    1722  
    1723  
    17241710# From a sysfs device path and an attribute name, return the attribute 
    17251711# value, or undef (stolen from sensors-detect) 
     
    18161802        } 
    18171803} 
     1804 
     1805 
     1806if ($opt_html && !$opt_bodyonly) { 
     1807        print "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n", 
     1808              "<html><head>\n", 
     1809                  "\t<meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n", 
     1810                  "\t<title>PC DIMM Serial Presence Detect Tester/Decoder Output</title>\n", 
     1811                  "</head><body>\n"; 
     1812} 
     1813 
     1814printc("decode-dimms version $revision"); 
     1815printh('Memory Serial Presence Detect Decoder', 
     1816'By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, 
     1817Jean Delvare, Trent Piepho and others'); 
    18181818 
    18191819# Process the valid entries