Changeset 6063
- Timestamp:
- 07/19/12 18:47:54 (10 months ago)
- Location:
- i2c-tools/branches/i2c-tools-3.1
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
eeprom/decode-dimms (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c-tools/branches/i2c-tools-3.1/CHANGES
r6048 r6063 5 5 decode-dimms: Decode module configuration type of DDR2 SDRAM 6 6 Decode bus width extension of DDR3 SDRAM 7 Don't choke when no EEPROM is found 7 8 i2c-dev.h: Minimize differences with kernel flavor 8 9 Move SMBus helper functions to include/i2c/smbus.h -
i2c-tools/branches/i2c-tools-3.1/eeprom/decode-dimms
r6043 r6063 1740 1740 sub get_dimm_list 1741 1741 { 1742 my (@dirs, $dir, $ file, @files);1742 my (@dirs, $dir, $opened, $file, @files); 1743 1743 1744 1744 if ($use_sysfs) { … … 1750 1750 foreach $dir (@dirs) { 1751 1751 next unless opendir(local *DIR, $dir); 1752 $opened++; 1752 1753 while (defined($file = readdir(DIR))) { 1753 1754 if ($use_sysfs) { … … 1770 1771 } 1771 1772 1772 if (@files) { 1773 return sort { $a->{file} cmp $b->{file} } @files; 1774 } elsif (! -d '/sys/module/eeprom') { 1775 print "No EEPROM found, are you sure the eeprom module is loaded?\n"; 1773 if (!$opened) { 1774 print STDERR "No EEPROM found, try loading the eeprom or at24 module\n"; 1776 1775 exit; 1777 1776 } 1777 1778 return sort { $a->{file} cmp $b->{file} } @files; 1778 1779 } 1779 1780
