Changeset 6062
- Timestamp:
- 07/19/12 18:25:41 (10 months ago)
- Location:
- i2c-tools/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
eeprom/decode-dimms (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c-tools/trunk/CHANGES
r6059 r6062 6 6 decode-dimms: Decode module configuration type of DDR2 SDRAM 7 7 Decode bus width extension of DDR3 SDRAM 8 Don't choke when no EEPROM is found 8 9 i2c-dev.h: Minimize differences with kernel flavor 9 10 Move SMBus helper functions to include/i2c/smbus.h -
i2c-tools/trunk/eeprom/decode-dimms
r6061 r6062 1726 1726 sub get_dimm_list 1727 1727 { 1728 my (@dirs, $dir, $ file, @files);1728 my (@dirs, $dir, $opened, $file, @files); 1729 1729 1730 1730 if ($use_sysfs) { … … 1736 1736 foreach $dir (@dirs) { 1737 1737 next unless opendir(local *DIR, $dir); 1738 $opened++; 1738 1739 while (defined($file = readdir(DIR))) { 1739 1740 if ($use_sysfs) { … … 1756 1757 } 1757 1758 1758 if (@files) { 1759 return sort { $a->{file} cmp $b->{file} } @files; 1760 } elsif (! -d '/sys/module/eeprom') { 1761 print "No EEPROM found, are you sure the eeprom module is loaded?\n"; 1759 if (!$opened) { 1760 print STDERR "No EEPROM found, try loading the eeprom or at24 module\n"; 1762 1761 exit; 1763 1762 } 1763 1764 return sort { $a->{file} cmp $b->{file} } @files; 1764 1765 } 1765 1766
